SA-MP Forums Archive
Command Problem - 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: Command Problem (/showthread.php?tid=452487)



Command Problem - Edward2013 - 21.07.2013

Hello. I wrote a simple command, but when I compile the code it shows me - error 001: expected token: ")", but found "-identifier-" at line 41637. This is the code

Код:
if(strcmp(cmd, "/getuniform", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	{
	    if (IsPlayerInRangeOfPoint(playerid, 255.3859,76.9326,1003.6406,297.0429,0,0,0,0,0,0)
	    
           SetPlayerSkin(playerid, 280);
	    }
	    return 1;
	    }
SetPlayerSkin(playerid, 280); is line 41637. I know, it tells me that I didn't put ")" somewhere, but I don't see where to put it..? :\


Re: Command Problem - [XST]O_x - 21.07.2013

pawn Код:
if (IsPlayerInRangeOfPoint(playerid, 255.3859,76.9326,1003.6406,297.0429,0,0,0,0,0,0))
Replace this with your line.


Re: Command Problem - SuperViper - 21.07.2013

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 5, 255.3859, 76.9326, 1003.6406))



Re: Command Problem - Edward2013 - 21.07.2013

Quote:
Originally Posted by [XST]O_x
Посмотреть сообщение
pawn Код:
if (IsPlayerInRangeOfPoint(playerid, 255.3859,76.9326,1003.6406,297.0429,0,0,0,0,0,0))
Replace this with your line.
Problem solved. Thanks.