/freeze command error
#1

Код:
CMD:freeze(playerid,params[])
{
	if(PlayerInfo[playerid][pAdmin] >= 1)
	{
		new id;
		if(sscanf(params,"u",id)) return SendClientMessage(playerid,-1,"USAGE: /freeze [ID]");
		if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,"That player is not connected");
		new str[100]
		format(str,sizeof(str),"You have been frozen by an admin.", id); --> Error line.
		SendClientMessage(id, COLOR_RED, str);
		TogglePlayerControllable(id,0);
	}
	return 1;
}
Код:
error 001: expected token: ";", but found "-identifier-"
What am i doing wrong here?
Reply


Messages In This Thread
/freeze command error - by Escobabe - 25.09.2017, 14:10
Re: /freeze command error - by 10MIN - 25.09.2017, 14:14
Re: /freeze command error - by Escobabe - 25.09.2017, 14:16

Forum Jump:


Users browsing this thread: 1 Guest(s)