vehicle id error
#1

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 
Reply
#2

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

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)