SA-MP Forums Archive
Zcmd error.. - 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)
+--- Thread: Zcmd error.. (/showthread.php?tid=547796)



Zcmd error.. - dundolina - 25.11.2014

I change strcmp command to zcmd and give me error :

Код:
D:\Shefa\Igri\GTASanAndreasRIP\bam\gamemodes\gangwars4.pwn(3242) : error 029: invalid expression, assumed zero
D:\Shefa\Igri\GTASanAndreasRIP\bam\gamemodes\gangwars4.pwn(3242) : error 017: undefined symbol "cmd_fightstyles"
D:\Shefa\Igri\GTASanAndreasRIP\bam\gamemodes\gangwars4.pwn(3242) : error 029: invalid expression, assumed zero
D:\Shefa\Igri\GTASanAndreasRIP\bam\gamemodes\gangwars4.pwn(3242) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
The command :

Код:
CMD:fightstyles(playerid, params[])
	{
	    if(IsPlayerConnected(playerid))
		{
		    if(IsPlayerInRangeOfPoint(playerid, 5.0,760.8469,11.4000,1001.1639))
       		{
			        ShowPlayerDialog(playerid, 0,DIALOG_STYLE_LIST,"Select a Fighting Style","Boxing ( 5000$ )\r\nKung Fu ( 15000$ )\r\nKnee Head ( 30000$ )\r\nGrab Kick ( 45000$ )\r\nElbow ( 70000$ )","Select", "Cancel");
			}
			else
			{
			    SendClientMessage(playerid, COLOR_RED, "Не си във фитнес залата!");
			}
		}
		return 1;
	}



Re: Zcmd error.. - Schneider - 25.11.2014

Did you #include zcmd and sscanf2?


Re: Zcmd error.. - dundolina - 25.11.2014

I found the problem and fix it! Remove.