SA-MP Forums Archive
Help 1 Eror (Who help me +REP) - 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: Help 1 Eror (Who help me +REP) (/showthread.php?tid=378459)



Help 1 Eror (Who help me +REP) - imnoob - 17.09.2012

CODE
Код:
	        if(!PlayerToPoint(3.0,playerid,-2640.762939,1406.682006,906.460937 || !PlayerToPoint(3.0,playerid,-227.027999,1401.229980,27.765625))
12664:	        {
ERROR
Код:
:\DOCUME~1\EA3B~1\Desktop\FREAKW~1\GAMEMO~1\FWRPG.pwn(12664) : error 001: expected token: ")", but found "{"



Re: Help 1 Eror (Who help me +REP) - Bingo - 17.09.2012

Before you start this codes you must define it, If you are beginner you' gotta learn that


Re: Help 1 Eror (Who help me +REP) - AtItsMax - 17.09.2012

pawn Код:
if(!PlayerToPoint(3.0,playerid,-2640.762939,1406.682006,906.460937)) || if(!PlayerToPoint(3.0,playerid,-227.027999,1401.229980,27.765625))



Re: Help 1 Eror (Who help me +REP) - imnoob - 17.09.2012

Quote:
Originally Posted by AtItsMax
Посмотреть сообщение
pawn Код:
if(!PlayerToPoint(3.0,playerid,-2640.762939,1406.682006,906.460937)) || if(!PlayerToPoint(3.0,playerid,-227.027999,1401.229980,27.765625))
dont work new error
Код:
C:\DOCUME~1\EA3B~1\Desktop\FREAKW~1\GAMEMO~1\FWRPG.pwn(12663) : error 029: invalid expression, assumed zero
C:\DOCUME~1\EA3B~1\Desktop\FREAKW~1\GAMEMO~1\FWRPG.pwn(12663) : warning 215: expression has no effect
C:\DOCUME~1\EA3B~1\Desktop\FREAKW~1\GAMEMO~1\FWRPG.pwn(12663) : error 001: expected token: ";", but found "if"



Re: Help 1 Eror (Who help me +REP) - [LB]BlAcK_DeViL - 17.09.2012

Try this

PHP код:
if(!PlayerToPoint(3.0,playerid,-2640.762939,1406.682006,906.460937 || !PlayerToPoint(3.0,playerid,-227.027999,1401.229980,27.765625))




Re: Help 1 Eror (Who help me +REP) - antonio112 - 17.09.2012

pawn Код:
if(!PlayerToPoint(3.0,playerid,-2640.762939,1406.682006,906.460937) || !PlayerToPoint(3.0,playerid,-227.027999,1401.229980,27.765625))
{
This will work.

You forgot to close a bracket ")" after the first PlayerToPoint.