Vehicle is turned off via script
#5

I'm pretty sure that the function simply returns -1 for a value if it's not been set before. However, in Pawn everything that isn't exactly 0 is evaluated as "true". Therefore, -1 is also "true". It should probably be evaluated as:
pawn Код:
if(engine != 1)
Reply


Messages In This Thread
Vehicle is turned off via script - by uTorrent - 06.05.2014, 15:21
Re: Vehicle is turned off via script - by Konstantinos - 06.05.2014, 15:39
Re: Vehicle is turned off via script - by uTorrent - 06.05.2014, 15:45
Re: Vehicle is turned off via script - by Konstantinos - 06.05.2014, 15:47
Re: Vehicle is turned off via script - by Vince - 06.05.2014, 15:56
Re: Vehicle is turned off via script - by uTorrent - 06.05.2014, 16:00

Forum Jump:


Users browsing this thread: 1 Guest(s)