SA-MP Forums Archive
vehicle id 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: vehicle id error (/showthread.php?tid=522084)



vehicle id error - Bek_Loking - 25.06.2014

Eh. I wanna check if the guy that wants to do a job is in the job car. I made this function:

PHP код:
if(vid !== 572SendClientMessage(playeridCOLOR_RED"You're not in your job vehicle!!!"); 
while i get these errors:

PHP код:
C:\Users\MARKO\Desktop\Learning\gamemodes\Tutorial.pwn(701) : error 029invalid expressionassumed zero
C
:\Users\MARKO\Desktop\Learning\gamemodes\Tutorial.pwn(701) : warning 215expression has no effect
C
:\Users\MARKO\Desktop\Learning\gamemodes\Tutorial.pwn(701) : error 001expected token";"but found ")"
C:\Users\MARKO\Desktop\Learning\gamemodes\Tutorial.pwn(701) : error 029invalid expressionassumed zero
C
:\Users\MARKO\Desktop\Learning\gamemodes\Tutorial.pwn(701) : fatal error 107too many error messages on one line 



Re: vehicle id error - Vince - 25.06.2014

The !== operator does not exist in Pawn. Read documentation (and your code) first, ask questions later.


Re: vehicle id error - Jack_Leslie - 25.06.2014

It should be "!=" not "!=="

When using operators, say it in English.
You have "DOES NOT EQUAL EQUAL", you need "DOES NOT EQUAL".


Re: vehicle id error - Bek_Loking - 25.06.2014

Thank you for your explanation Jack. Vince no need to be rude as that.