Suspect Command not working good
#1

Код:
CMD:su(playerid, params[])
{
	new id, crime;
	new string[128];
	if(sscanf(params, "us", id, crime)) return SendClientMessage(playerid, COLOR_ORANGE, "Koristi: {FFFFFF}/su [ID/Nick] [Zlocin]");
	else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}>> [GRESKA] {FFFFFF}Krivi ID!");
	format(string, sizeof string, "Officer %s reported - %s.", playerid, id); //officer reported player
	SendClientMessage(playerid, 0x9955DEEE, string);
	format(string, sizeof string, "You put wanted on %s reason - %s.", id, crime); // officer put wanted on player with reason
	SendClientMessage(playerid, 0x9955DEEE, string);
	format(string, sizeof string, "**ALL UNITS** %s is wanted for - %s.", id, crime); //Sending message to all officers .... Nick and Reason
	SendFamMessage(1,0x9955DEEE, string);
	SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 1);
	return 1;
}
get this - sscanf warning: Strings without a length are deprecated, please add a destination size.
Reply


Messages In This Thread
Suspect Command not working good - by David (Sabljak) - 07.11.2012, 07:07
Re: Suspect Command not working good - by cosbraa - 07.11.2012, 07:10
Re: Suspect Command not working good - by David (Sabljak) - 07.11.2012, 07:20
Re: Suspect Command not working good - by PrawkC - 07.11.2012, 07:22
Re: Suspect Command not working good - by David (Sabljak) - 07.11.2012, 07:36
Re: Suspect Command not working good - by B-Matt - 07.11.2012, 08:45

Forum Jump:


Users browsing this thread: 2 Guest(s)