SA-MP Forums Archive
help with zcmd and sscanf - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help with zcmd and sscanf (/showthread.php?tid=200362)



help with zcmd and sscanf - yarrum3 - 18.12.2010

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.


Re: help with zcmd and sscanf - Rachael - 18.12.2010

Braces.

You have 2 x { and only 1 x }