SA-MP Forums Archive
error 001: expected token: ")", but found "{" - 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: error 001: expected token: ")", but found "{" (/showthread.php?tid=376554)



error 001: expected token: ")", but found "{" - imnoob - 10.09.2012

LINE 12296--->
Код:
{
full line --->
Код:
            if(!PlayerToPoint(3.0,playerid,-2640.762939,1406.682006,906.460937 || IsPlayerInRangeOfPoint(3.0,playerid, -227.027999, 1401.229980, 27.765625))
11296       {
	        SendClientMessage(playerid, COLOR_GREY, "   Ur not in advertiser !");
	        return 1;
	    }



Re: error 001: expected token: ")", but found "{" - C00K13M0N$73R - 10.09.2012

Show some more code.


Re: error 001: expected token: ")", but found "{" - Roko_foko - 10.09.2012

Код:
            if(!PlayerToPoint(3.0,playerid,-2640.762939,1406.682006,906.460937)  || IsPlayerInRangeOfPoint(3.0,playerid, -227.027999, 1401.229980, 27.765625))
            {
	        SendClientMessage(playerid, COLOR_GREY, "   Ur not in advertiser !");
	        return 1;
	    }
You missed a ')' before ||


Re: error 001: expected token: ")", but found "{" - imnoob - 10.09.2012

Quote:
Originally Posted by Roko_foko
Посмотреть сообщение
Код:
            if(!PlayerToPoint(3.0,playerid,-2640.762939,1406.682006,906.460937)  || IsPlayerInRangeOfPoint(3.0,playerid, -227.027999, 1401.229980, 27.765625))
            {
	        SendClientMessage(playerid, COLOR_GREY, "   Ur not in advertiser !");
	        return 1;
	    }
You missed a ')' before ||
omggg thanks <3333 god bless you btw HVALA :*


Re: error 001: expected token: ")", but found "{" - Raza2013 - 09.01.2014

remember you must put ")" whenever you change something brah


Re: error 001: expected token: ")", but found "{" - Konstantinos - 09.01.2014

EDIT: You posted your code to fix the error and then you edit your post..