05.10.2015, 20:41
hi help me please
im getting this error : error 001: expected token: ";", but found "-identifier-"
im getting this error : error 001: expected token: ";", but found "-identifier-"
Код:
CMD:prize(playerid,params[]) { if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid, COLOR_ERROR,"[ERROR]:you are not rcon admin"); new targetid,str[75],ammount,pname[MAX_PLAYER_NAME]; GetPlayerName(targetid); if(sscanf(params,"ud",targetid,ammount)) return SendClientMessage(playerid,COLOR_ERROR,"[ERROR]:Usage(playerid)/[Prize Money]"); if(playerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_ERROR, "[ERROR]:Player is not connected."); if(ammount < 1000000 || ammount > 3000000) return SendClientMessage(playerid,COLOR_ERROR,"Invalid ammount Range's Are 1million to 3million"); GetPlayerMoney(targetid); GivePlayerMoney(targetid,ammount) format(str,sizeof(str), "You Have Recived (%d) prize money by a admin",ammount); // error line! SendClientMessage(playerid,COLOR_CYAN,str); format(str,sizeof(str), "you have given %d prizemoney to (%i)",ammount,targetid); SendClientMessage(targetid,COLOR_CYAN,str); return 1; }