11.10.2011, 10:00
I posted earlier and I needed help to send a message to admins, Iv figured that out but now I get this wierd error me and my friend cant figure out..
When I go ingame and do /report 0 test it says Player not connected
But If I Type
/report 0 t it works.. any one know why?
pawn Код:
CMD:report(playerid,params[]){
new string[128],id,reason;
if(sscanf(params,"us",id,reason)) return SendClientMessage(playerid,COLOR_GRAY,"SYNTAX: /report [id] [reason]");
else if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_GRAY, "ERROR: Player is not connected!");
format(string,sizeof(string),"%s has reported %s: %s",GetName(playerid),GetName(id),reason);
SendToAdmins(COLOR_YELLOW,string);
return 1;
}
But If I Type
/report 0 t it works.. any one know why?