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 |
|
|
|