#1

Hi all,
My server get crashed, when it don't get restarted for more than +6 hours :/

i runned Crashdetect plugin, that's what i found on the log

Код:
[05:06:58] [debug] #0  00000008 in public OnPlayerUpdate () from NFOP.amx
[05:06:58] [debug] Run time error 7: "Stack underflow"
[05:06:58] [debug]   Stack index (STK) is 0x848E00, stack top (STP) is 0x848DF0
[05:06:58] [debug] Backtrace (most recent call first):
[05:06:58] [debug] #0  00000008 in public ClassSelectionUpdate () from NFOP.amx
[05:06:58] [debug] Run time error 7: "Stack underflow"
[05:06:58] [debug]   Stack index (STK) is 0x848DF4, stack top (STP) is 0x848DF0
[05:06:58] [debug] Backtrace (most recent call first):
Well this code*450 or somthing the log size is really big, right now.
Reply
#2

Bumb
Reply
#3

Any idea?
Reply
#4

Show us the public function ClassSelectionUpdate
Reply
#5

Код:
global ClassSelectionUpdate()
{
	new t=GetTickCount();
    new Float:x,Float:y;
	for(new i=0;i<PlayersSelectingClass;i++)
	{
	    if(IsValidPlayer(PlayerClassSelectionList[i]) && SelectingClass[PlayerClassSelectionList[i]])
	    {
	        if(ClassAngle[PlayerClassSelectionList[i]]>360.0)
	            ClassAngle[PlayerClassSelectionList[i]]-=360.0;

         	x=(4.5*floatsin(-ClassAngle[PlayerClassSelectionList[i]],degrees))+RandomClassPositions[ClassInfo[PlayerClassSelectionList[i]][0]][cPos][0];
			y=(7.0*floatcos(-ClassAngle[PlayerClassSelectionList[i]],degrees))+RandomClassPositions[ClassInfo[PlayerClassSelectionList[i]][0]][cPos][1];
            SetPlayerCameraPos(PlayerClassSelectionList[i],x,y,RandomClassPositions[ClassInfo[PlayerClassSelectionList[i]][0]][cPos][2]+2.0);
		    SetPlayerCameraLookAt(PlayerClassSelectionList[i],RandomClassPositions[ClassInfo[PlayerClassSelectionList[i]][0]][cPos][0],RandomClassPositions[ClassInfo[PlayerClassSelectionList[i]][0]][cPos][1],
		    	RandomClassPositions[ClassInfo[PlayerClassSelectionList[i]][0]][cPos][2]+1.0);
            ClassAngle[PlayerClassSelectionList[i]]+=0.5;
	    }
	}
	debugf(3,"ClassSelectionUpdate(): %dms, PlayersSelectingClass=%d",GetTickCount()-t,PlayersSelectingClass);
	return 1;
}
But i don't think that's the problem, because it was working and i never changed it.
It seems to be a problem from the website that i'm using to host :/
Because when i start selecting team i receive an advertissing text
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)