m8966338
|
分享:
▼
x0
|
[1.6][插件] 變數怎麼設? 還有運用?
#include <amxmodx> #include <amxmisc>
new PLUGIN[] = "test" new AUTHOR[] = "Lexus" new VERSION[] = "1.0.0" new red_win[] = "1"
public plugin_init() { register_clcmd( "/test","ExtraMenu"); register_plugin(PLUGIN, VERSION, AUTHOR) }
public ExtraMenu(id) { red_win ++ //這加的方式不知道正不正確 set_hudmessage(255, 0, 0, -1.0, 0.0, 0, 6.0, 12.0) show_hudmessage(id, red_win) //這邊我不知道對不對,不過我要把它帶入HUD中 } 困擾好久 自己亂弄也弄不好 拜託高手幫幫 順便教我一下如何設一個變數且是全部插件可用的?
|
|
x0
[樓 主]
From:臺灣中華電信股份有限公司 | Posted:2013-02-27 22:15 |
|
|
絕影華
|
分享:
▲
複製程式
#include <amxmodx>
#include <amxmisc>
new PLUGIN[] = "test";
new AUTHOR[] = "Lexus";
new VERSION[] = "1.0.0";
new red_win = 1;
public plugin_init()
{
register_clcmd( "/test","ExtraMenu");
register_plugin(PLUGIN, VERSION, AUTHOR);
}
public ExtraMenu(id)
{
red_win ++;
set_hudmessage(255, 0, 0, -1.0, 0.0, 0, 6.0, 12.0);
how_hudmessage(id, "%i", red_win);
}
|
|
x2
[6 樓]
From:未知地址 | Posted:2013-02-28 17:15 |
|
|
|