Stack underflow in OnVehicleSpawn - 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: Stack underflow in OnVehicleSpawn (
/showthread.php?tid=428225)
Stack underflow in OnVehicleSpawn -
[SF]OutLawZ - 05.04.2013
It says it all,
Код:
[18:12:49] [debug] #0 00000008 in OnVehicleSpawn () from Race.amx
[18:12:49] [debug] Backtrace (most recent call first):
[18:12:49] [debug] Stack index (STK) is 0x925B8, stack top (STP) is 0x925B0
[18:12:49] [debug] Run time error 7: "Stack underflow"
Код:
public OnVehicleSpawn(vehicleid)
{
if(GetVehicleVirtualWorld(vehicleid) == RaceWorld) SetVehicleVirtualWorld(vehicleid, 0);
}
I've debugged my script and it's giving me a response with Stack underflow.