SA-MP Forums Archive
Multipe errors - 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: Multipe errors (/showthread.php?tid=375702)



Multipe errors - davelord - 07.09.2012

Код:
C:\Users\Mijn pc\Desktop\Scripting\gamemodes\login.pwn(174) : error 029: invalid expression, assumed zero
C:\Users\Mijn pc\Desktop\Scripting\gamemodes\login.pwn(174) : error 017: undefined symbol "cmd_me"
C:\Users\Mijn pc\Desktop\Scripting\gamemodes\login.pwn(174) : error 029: invalid expression, assumed zero
C:\Users\Mijn pc\Desktop\Scripting\gamemodes\login.pwn(174) : fatal error 107: too many error messages on one line

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


4 Errors.
Line 174 = CMD:me(playerid, params[])

whole command:
Код:
CMD:me(playerid, params[])
	{
	    new
	        string[128],
	        action[100];
	    if(sscanf(params, "s[100]", action))
	    {
	        SendClientMessage(playerid, -1, "USAGE: /me [action]");
	        return 1;
	    }
	    else
	    {
	        format(string, sizeof(string), "* %s %s", GetName(playerid), action);
	        ProxDetector(30, playerid, string, COLOR_PURPLE);
	    }
	    return 1;
	}
How can I fix this? I followed this tutorial, https://sampforum.blast.hk/showthread.php?tid=336052


Re: Multipe errors - TheArcher - 07.09.2012

Try to re-download zcmd include, replacing it with the old one, open pawno.exe, browse your gamemode manualy, re-compile.


Re: Multipe errors - davelord - 07.09.2012

Nope, didn't work. I placed them under "OnPlayerCommandText" though, or is that the problem?


Re: Multipe errors - TheArcher - 07.09.2012

Yes that's the problem...remove OnPlayerCommandText properly from your gamemode.