SOLVED - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SOLVED (
/showthread.php?tid=123105)
SOLVED -
Torran - 24.01.2010
SOLVED
Re: Message not showing -
mansonh - 24.01.2010
The only thing i can see that would stop that is your check
if(Engine[vehicleid] == 0)
so try commenting that out.
Re: Message not showing -
Torran - 24.01.2010
I need that check
Re: Message not showing -
mansonh - 24.01.2010
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.
Re: Message not showing -
Torran - 24.01.2010
Ok
Re: Message not showing -
Torran - 24.01.2010
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
Re: Message not showing -
mansonh - 24.01.2010
How do you define Engine?
Re: Message not showing -
Torran - 24.01.2010
pawn Код:
new Engine[MAX_VEHICLES];
Re: Message not showing -
mansonh - 24.01.2010
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.
Re: Message not showing -
Torran - 24.01.2010
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?