我的这个拆包奖励插件为啥编译不了
我的这个拆包奖励插件为啥编译不了,哪位高人帮忙指点一下#include <amxmodx>
#include <cstrike>
#include <csx>
#include <fun>
#include <unlimited_money>
#define MONEY 3000
new g_maxplayers
public plugin_init()
{
register_plugin("BombReward", "1.0", "ZhangSheng")
g_maxplayers = get_maxplayers()
}
public bomb_explode(planter, defuser){
new msg
for(new id = 1; id <= g_maxplayers; id++)
{
if(is_user_connected(id) && cs_get_user_team(id) == CS_TEAM_T)
{
cs_set_user_money2(id, cs_get_user_money2(id) + MONEY)
}
}
format(msg, 511,"^x04炸弹被引爆【全体匪徒额外奖励+$%d元】^x01", MONEY)
client_color(0, msg)
for(new id = 1; id <= g_maxplayers; id++)
{
if(is_user_connected(id) && cs_get_user_team(id) == CS_TEAM_CT)
{
cs_set_user_money2(id, cs_get_user_money2(id) - MONEY)
}
}
format(msg, 511,"^x04炸弹被引爆【全体警察扣除金钱-$%d元】^x01", MONEY)
client_color(0, msg)
}
public bomb_defused(defuser){
new msg
for(new id = 1; id <= g_maxplayers; id++)
{
if(is_user_connected(id) && cs_get_user_team(id) == CS_TEAM_CT)
{
cs_set_user_money2(id, cs_get_user_money2(id) + MONEY)
}
}
format(msg, 511,"^x04炸弹被拆除【全体警察额外奖励+$%d元】^x01", MONEY)
client_color(0, msg)
for(new id = 1; id <= g_maxplayers; id++)
{
if(is_user_connected(id) && cs_get_user_team(id) == CS_TEAM_T)
{
cs_set_user_money2(id, cs_get_user_money2(id) - MONEY)
}
}
format(msg, 511,"^x04炸弹被拆除【全体匪徒扣除金钱-$%d元】^x01", MONEY)
client_color(0, msg)
}
public client_color(id,msg[]){
new playerslist,playerscount//,i
get_players(playerslist,playerscount,"c")
while(replace(msg,127,"0x01","^x01")){}
while(replace(msg,127,"0x02","^x02")){}
while(replace(msg,127,"0x03","^x03")){}
while(replace(msg,127,"0x04","^x04")){}
if(id==0){
message_begin(MSG_ALL, get_user_msgid("SayText"), {0,0,0},1)
write_byte(1)
write_string(msg)
message_end()
}
else{
message_begin(MSG_ONE, get_user_msgid("SayText"), {0,0,0}, id)
write_byte(id)
write_string(msg)
message_end()
}
}
编译不了上个东西还收钱!!! 我有个人的拆包奖励,但是没有全体都奖励的插件!
页:
[1]