Crash - 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: Crash (
/showthread.php?tid=455785)
Crash -
DeMoX - 03.08.2013
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.
Re: Crash -
DeMoX - 03.08.2013
Bumb
Re: Crash -
DeMoX - 03.08.2013
Any idea?
Re: Crash -
Red_Dragon. - 03.08.2013
Show us the public function ClassSelectionUpdate
Re: Crash -
DeMoX - 04.08.2013
Код:
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