09.04.2015, 15:41
Hello everyone. So last night I just added few objects in my gamemode and I compile it enter the server everything worked fine and today I run samp-server.exe console oke no error by crashdetect and I enter in gamemode I mean connect and I get that stack underflow but last night I enter on server normall without any trouble or problems or errors runtime.
This is few places I mean publics where crachdetect is discover that stack underflow
and here is that public
I don't know what might happens I last night normaly connected to server and exit and I close samp-server.exe and this morning I get those stack underflow
also here it is what it says when I compile gamemode without any errors or warnings:
This is few places I mean publics where crachdetect is discover that stack underflow
pawn Код:
[21:15:39] [debug] AMX backtrace:
[21:15:39] [debug] #0 ???????? in public JailTimerUpdate ()
[21:15:40] [debug] Run time error 7: "Stack underflow"
[21:15:40] [debug] Stack pointer (STK) is 0x22293A8, stack top (STP) is 0x222939C
pawn Код:
forward JailTimerUpdate();
public JailTimerUpdate()
{
foreach(Player,i)
{
if(IgracLogiran[i] == 1)
{
if(PlayerInfo[i][Zatvoren] != 0)
{
PlayerInfo[i][ZatvorenVrijeme]--;
new string[64];
format(string,sizeof(string),"%d",PlayerInfo[i][ZatvorenVrijeme]);
TextDrawSetString(ZatvorenDraw1[i],string);
TextDrawShowForPlayer(i,ZatvorenDraw0[i]);
TextDrawShowForPlayer(i,ZatvorenDraw1[i]);
}
else
{
TextDrawHideForPlayer(i,ZatvorenDraw0[i]);
TextDrawDestroy(ZatvorenDraw0[i]);
TextDrawHideForPlayer(i,ZatvorenDraw1[i]);
TextDrawDestroy(ZatvorenDraw1[i]);
}
}
}
return 1;
}
also here it is what it says when I compile gamemode without any errors or warnings:
pawn Код:
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 18364 bytes
Code size: 4784448 bytes
Data size: 18781088 bytes
Stack/heap size: 17039360 bytes; estimated max. usage: unknown, due to recursion
Total requirements:40623260 bytes