Run time error 7: "Stack underflow"?
#1

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);
            }
        }
    }
}
Reply
#2

Post in your original thread: https://sampforum.blast.hk/showthread.php?tid=352261
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)