引用 | 编辑
m8966338
2012-06-22 22:47 |
楼主
▼ |
||
x0
new money = cs_get_user_money(id)我将美金代入money这代数中 再用 set_hudmessage(255, 0, 0, 0.36, 0.54, 0, 6.0, 12.0) show_hudmessage(id, money) 显示带入的数 但是就偏偏会出现错误 整个写起来是这样 复制程式 #include <amxmodx> #include <cstrike> #include <fun> public plugin_init() { register_plugin("testing", "1.0", "Testing") register_clcmd("say /test", "test") } public test(id) { new money = cs_get_user_money(id) //将money代入cs_get_user_money, cs_get_user_money即是玩家在CS的美金 if( money >= 0) //如果玩家的美金不小于0则执行以下动作 { set_hudmessage(255, 0, 0, 0.36, 0.54, 0, 6.0, 12.0) show_hudmessage(id, money) } else // 如果不符合以上条件 { client_print(id, print_chat, "您的钱是负的") } } x0
|