21.06.2014, 05:28
@Rittik it have error:
Error Line :
Код:
error 001: expected token: ")", but found "{"
Код:
CMD:reward(playerid, params[]) { if(IsPlayerAdmin(playerid)) { new id,score,cash; if(sscanf(params,"iii",id,cash,score) //This Line{ SendClientMessage(playerid,-1,"/reward <id> <cash> <score>"); return 1; } else { if(IsPlayerConnected(id)) { GivePlayerMoney(id,cash); SetPlayerScore(id,GetPlayerScore(playerid)+score); } else { SendClientMessage(playerid,-1,"Player is not connected"); return 1; } } } else { SendClientMessage(playerid,-1,"You need to be an Admin to use this command"); return 1; } return 1; }