Not working in-game.
#4

any errors?

COMMAND:report(playerid, params[])
{
new targetid, reason[128];
if(sscanf(params, "us[128]", targetid, reason)) return SendClientMessage(playerid, 0xFFFFFFAA, "SYNTAX Error: /report (targetid | name) (reason)");
else if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFFFFFFAA, "Error: That player is not connected");
else if(playerid == targetid) return SendClientMessage(playerid, 0xFFFFFFAA, "Error: You cannot report your self");
new string[128];
format(string, sizeof(string), "%s(%d) has reported %s(%d) for: %s", PlayerName(playerid), playerid, PlayerName(targetid), targetid, reason);
SendClientMessageToAdmins(0xFFFFFFAA, string);
return 1;
}
Reply


Messages In This Thread
Not working in-game. - by Alex_Obando - 21.05.2011, 13:52
Re: Not working in-game. - by Lorenc_ - 21.05.2011, 13:56
Respuesta: Not working in-game. - by Alex_Obando - 21.05.2011, 13:58
Re: Not working in-game. - by THE_KNOWN - 21.05.2011, 14:33
Respuesta: Not working in-game. - by Alex_Obando - 21.05.2011, 14:37
Re: Not working in-game. - by Laronic - 21.05.2011, 14:50
Respuesta: Not working in-game. - by Alex_Obando - 21.05.2011, 15:33
Respuesta: Not working in-game. - by K9- - 21.05.2011, 16:18
Respuesta: Not working in-game. - by Alex_Obando - 21.05.2011, 16:30
Respuesta: Not working in-game. - by K9- - 21.05.2011, 16:41

Forum Jump:


Users browsing this thread: 1 Guest(s)