help with zcmd and sscanf
#1

hi im trying to learn Zcmd and sscanf this is the command i made.
Код:
}
CMD:freeze(playerid, params[]) {
new targetid, toggle;
if(PlayerInfo[playerid][pAdminLevel] >= 2)
	{
	if( sscanf(params, "ud",targetid, toggle)) return SendClientMessage(playerid,WHITE, "[SERVER]:{E8E107}Usage: /freeze {1AE807} [playerid] [1-2] ");
	TogglePlayerControllable(targetid, toggle);
	return 1;
}
and this is my error
Код:
C:\Users\Ryan\Desktop\World Wide Roleplay 0.3c\gamemodes\WWRP.pwn(449) : error 030: compound statement not closed at the end of file (started at line 441)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
please help.
Reply
#2

Braces.

You have 2 x { and only 1 x }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)