19.06.2012, 05:23
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
and here is ArmyGates
Note* this is only one of the errors just like this I am getting about different functions on the script
Code:
[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):
pawn Code:
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);
}
}
}
}