SA-MP Forums Archive
i don't know how to fix this 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: i don't know how to fix this error ! (/showthread.php?tid=621172)



i don't know how to fix this error ! - TYDS - 07.11.2016

my error
Код:
(4139) : error 001: expected token: ";", but found "-identifier-"
n(4145) : error 001: expected token: ";", but found "-identifier-"
Code
i put in onplayernetercheckpoint
Код:
if(CP[playerid] == 266666)
	{
		SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Please Wait...")
		TogglePlayerControllable(playerid, 0); 
		SetTimerEx("cc1", 8000,false,"i",playerid); 
	}
	if(CP[playerid] == 277777)
	{
		SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Please Wait...")
		TogglePlayerControllable(playerid, 0);
		SetTimerEx("cc2", 8000,false,"i",playerid);
	}
Error line :
Код:
TogglePlayerControllable(playerid, 0); 
TogglePlayerControllable(playerid, 0);



Re: i don't know how to fix this error ! - justice96 - 07.11.2016

Код:
if(CP[playerid] == 266666)
	{
		SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Please Wait...");
		TogglePlayerControllable(playerid, 0); 
		SetTimerEx("cc1", 8000,false,"i",playerid); 
	}
	if(CP[playerid] == 277777)
	{
		SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Please Wait...");
		TogglePlayerControllable(playerid, 0);
		SetTimerEx("cc2", 8000,false,"i",playerid);
	}



Re: i don't know how to fix this error ! - TYDS - 07.11.2016

i don't see any different


Re: i don't know how to fix this error ! - justice96 - 07.11.2016

Take a look at:
Код:
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Please Wait...")



Re: i don't know how to fix this error ! - SyS - 07.11.2016

Quote:
Originally Posted by TYDS
Посмотреть сообщение
i don't see any different
The semicolon ;


Re: i don't know how to fix this error ! - TYDS - 07.11.2016

oh i see thank you