amxx可以連接其他amxx嗎?

Home Home
引用 | 編輯 suenasd321
2011-06-21 15:13
樓主
推文 x0
如果我想在shop中
case 1中,連接csowpn_m249ex的weapon_buy,要怎樣寫啊?
我不想在控制台或左下顯示~可以幫幫我嗎?

獻花 x0
引用 | 編輯 史來姆
2011-06-21 15:23
1樓
  
寫native
弄個接口
讓所有插件也能用該function

獻花 x0
引用 | 編輯 ChaosX
2011-06-21 17:39
2樓
  
下面是引用 史來姆 於 2011-06-21 15:23 發表的 : 到引言文
寫native
弄個接口
讓所有插件也能用該function
寫navite...教學區好像有教
我比較想知道
不寫native的話呢
該怎麼做...

獻花 x0
引用 | 編輯 史來姆
2011-06-21 18:44
3樓
  
#include "xxx.sma"
這樣
不過這個方法有點冒險
1.插件變得很大
2.因為包含了另一個sma,所有重覆的東西視為error
//例:ab.sma裡有 public plugin_init()
//你在xd.sma裡#include "ab.sma"
//但xd.sma裡也有public plugin_init()
//則視為error

所以我還是建議寫native好了-.-

獻花 x0
引用 | 編輯 ChaosX
2011-06-21 19:47
4樓
  
下面是引用 史來姆 於 2011-06-21 18:44 發表的 : 到引言文
#include "xxx.sma"
這樣
不過這個方法有點冒險
1.插件變得很大
2.因為包含了另一個sma,所有重覆的東西視為error
//例:ab.sma裡有 public plugin_init()
//你在xd.sma裡#include "ab.sma"
//但xd.sma裡也有public plugin_init()
//則視為error

所以我還是建議寫native好了-.-
原來如此...
也就是XD.sma變成了
ab.sma的附加元件了...
那...XD.sma的public plugin_init()內的東西要放哪阿= =

獻花 x0
引用 | 編輯 史來姆
2011-06-21 19:59
5樓
  
所以說還是寫native較好吧..
快捷方便

獻花 x0
引用 | 編輯 suenasd321
2011-06-21 21:40
6樓
  
哦~~~.明白了~~
即是在最上加 <csowpn_m249ex.sma>
然後把相同的字放.....真不知如何說...真難

獻花 x0
引用 | 編輯 suenasd321
2011-06-21 21:47
7樓
  
error 100: cannot read from file: "csowpn_m249ex.sma",這是什麼?

獻花 x0
引用 | 編輯 ChaosX
2011-06-22 00:26
8樓
  
下面是引用 suenasd321 於 2011-06-21 21:47 發表的 : 到引言文
error 100: cannot read from file: "csowpn_m249ex.sma",這是什麼?
根據google翻譯的結果...
你沒有csowpn_m249ex.sma這檔案

獻花 x0
引用 | 編輯 樂哥x_x
2011-06-22 01:08
9樓
  
做什麼不在csowpn_m249ex.sma加個指令

獻花 x0
引用 | 編輯 chuchung712
2011-06-22 16:45
10樓
  
單純買武器的話…

例如買m249ex是say /m249ex

那麼直接 case 1: client_cmd(id, "say /m249ex") 不是更快嗎?

獻花 x0
引用 | 編輯 史來姆
2011-06-22 22:05
11樓
  
下面是引用 suenasd321 於 2011-06-21 21:40 發表的 : 到引言文
哦~~~.明白了~~
即是在最上加 <csowpn_m249ex.sma>
然後把相同的字放.....真不知如何說...真難

1.我是這樣寫給你的嗎?這樣當然有error
2.極不建議新手採用此方法

獻花 x0
引用 | 編輯 tony987852
2011-06-23 15:52
12樓
  
把sma放上來, 然後讓其他人/我幫你修改?

獻花 x0
引用 | 編輯 HsK
2011-06-23 16:03
13樓
  
http://bbs-mychat.com/reads.php?tid=873135

這不是用native

可參考一下 a_a'

獻花 x0
引用 | 編輯 cs_library
2011-07-21 18:41
14樓
  
請利用論壇的搜尋系統,
打上關鍵字就有了。
表情

獻花 x0