SA-MP Forums Archive
Tag mismatch - 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: Tag mismatch (/showthread.php?tid=606967)



Tag mismatch - Micko123 - 12.05.2016

I have very strange problem (i think it is no from this planet)
When i put this in my gm
Код:
else if(Joined[playerid] == 1)
    	{
        	SCM(playerid, 0xF81414, "Ne mozete to dok ste u trci");
        	return 1;
		}
I get this
Код:
C:\Users\Admin\Desktop\Moj SRV\gamemodes\MojMod.pwn(4146) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
But when i put this
Код:
else if(Joined[playerid] == true)
    	{
        	SCM(playerid, 0xF81414, "Ne mozete to dok ste u trci");
        	return 1;
		}
Everything is fine. But with second one code is not working properly.


Re: Tag mismatch - jlalt - 12.05.2016

search for
PHP код:
Joined[MAX_PLAYERS] 
if I'm not wrong you will find it like
PHP код:
new bool:Joined[MA_PLAYERS]; 
remove bool and everything should be fine


Re: Tag mismatch - Micko123 - 12.05.2016

Thank you master