19.05.2010, 03:32
it says unknown command in-game. my code:
and i get no errors when i compile.
can anyone help? thanks I.A.
Код:
dcmd_report(playerid, params[]) { new id, text; new string[256],reporter[MAX_PLAYER_NAME], reportee[MAX_PLAYER_NAME]; GetPlayerName(playerid,reporter,sizeof(reporter)); GetPlayerName(id,reportee,sizeof(reportee)); format(string,sizeof(string), "%s has reported %s for: %s",reporter,reportee,text); if(sscanf(params,"dz",id,text)) SendClientMessage(playerid,COLOR_RED,"USAGE: /report [id] [Message]"); else { for(new i=0; i<=MAX_PLAYERS; i++) { if(IsPlayerAdmin(i) >= 10) { SendClientMessage(i, COLOR_RED, string); } } } return 1; }
can anyone help? thanks I.A.