SOLVED
#1

SOLVED
Reply
#2

The only thing i can see that would stop that is your check
if(Engine[vehicleid] == 0)
so try commenting that out.
Reply
#3

I need that check
Reply
#4

Yes but if you comment that out what happens?
To solve bugs in code you eliminate possible sources in order to locate the bug.
So just comment it out, try it, if it works, you know what your bug is.
Reply
#5

Ok
Reply
#6

Ok thats the problem,

pawn Код:
new vehicleid = GetPlayerVehicleID(playerid);
if(Engine[vehicleid] == 0)
Ok so now what?
How would i set a vehicle to

Engine[vehicleid] = 0;

Upon spawn or something like that,
Just a way to fix it thats all xd
Reply
#7

How do you define Engine?
Reply
#8

pawn Код:
new Engine[MAX_VEHICLES];
Reply
#9

Strange, the default value should be 0. Are you changing it anywhere else in the script?

But yes you could just set it to 0 OnVehicleSpawn or something like that.
Reply
#10

Quote:
Originally Posted by mansonh
Strange, the default value should be 0. Are you changing it anywhere else in the script?

But yes you could just set it to 0 OnVehicleSpawn or something like that.
Changing what anywhere else in the script?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)