Run time error 7: "Stack underflow"? - 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: Run time error 7: "Stack underflow"? (
/showthread.php?tid=352352)
Run time error 7: "Stack underflow"? -
vvhy - 19.06.2012
I am using a plugin crashdetect and here are one of the errors I am getting:
Note* this is only one of the errors just like this I am getting about different functions on the script
Код:
[15:02:18] [debug] Stack index (STK) is 0xAC6240, stack top (STP) is 0xAC6238
[15:02:18] [debug] Run time error 7: "Stack underflow"
[15:02:18] [debug] #0 00000008 in ArmyGates () from Gammode.amx
[15:02:18] [debug] Backtrace (most recent call first):
and here is ArmyGates
pawn Код:
public ArmyGates()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(PlayerToPoint(10.0, i, -1530.15380859,482.34051514,8.83757210) && ArmyGate == 0)
{
if(gTeam[i] == TEAM_ARMY)
{
MoveObject(ArmyGate, -1540.15380859,482.34051514,8.83757210, 5);
ArmyGate =1;
SetTimer("ArmyGatesClose",7000,0);
}
}
}
}
Re: Run time error 7: "Stack underflow"? -
dugi - 19.06.2012
Post in your original thread:
https://sampforum.blast.hk/showthread.php?tid=352261