SA-MP Forums Archive
debug error! - 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: debug error! (/showthread.php?tid=598875)



debug error! - PuN1Sh3r - 17.01.2016

Hello guys i tried to open my samp-server.exe everything was working and load, and when i write the ip (127.0.0.1) the server was giving the ping but the host name said (retrieving info 127.0.0.1:777...)
when i tried with another gm (the same script) i got some debug errors
Код:
[23:01:19] [debug] Run time error 4: "Array index out of bounds"
[23:01:19] [debug]   Accessing element at index 65535 past array upper bound 29
[23:01:19] [debug] Backtrace (most recent call first):
[23:01:19] [debug] #0  0011fe84 in ?? () from freeroam.amx
[23:01:19] [debug] #1  001a03fc in ?? () from freeroam.amx
[23:01:19] [debug] #2  0019efec in ?? () from freeroam.amx
[23:01:19] [debug] #3  00069534 in public zcmd_OnGameModeInit () from freeroam.amx
[23:01:19] [debug] #4  native CallLocalFunction () from samp-server.exe
[23:01:19] [debug] #5  0000d290 in public SSCANF_OnGameModeInit () from freeroam.amx
[23:01:19] [debug] #6  native CallLocalFunction () from samp-server.exe
[23:01:19] [debug] #7  000058e4 in public OnGameModeInit () from freeroam.amx
and these too..

Код:
[23:01:19] [debug] Run time error 7: "Stack underflow"
[23:01:19] [debug]   Stack index (STK) is 0x61D554, stack top (STP) is 0x61D550
[23:01:19] [debug] Backtrace (most recent call first):
[23:01:19] [debug] #0  00000008 in public CheckGameMode () from freeroam.amx
[23:01:19] [debug] Run time error 7: "Stack underflow"
[23:01:19] [debug]   Stack index (STK) is 0x61D554, stack top (STP) is 0x61D550
[23:01:19] [debug] Backtrace (most recent call first):
[23:01:19] [debug] #0  00000008 in public ClassSelectionUpdate () from freeroam.amx
[23:01:20] [debug] Run time error 7: "Stack underflow"
can anyone help me please i will +1 rep


Re: debug error! - PuN1Sh3r - 17.01.2016

that will take forever it's too long


Re: debug error! - PuN1Sh3r - 17.01.2016

PHP код:
public OnGameModeInit()
{
    new 
t=GetTickCount();
    
SetTimer("CheckGameMode",10,false);
    
AntiDeAMX();
    if(
MAX_PLAYERS!=GetMaxPlayers())
    {
        print(
"[Scripterror] MAX_PLAYERS stimmt nicht mit der in der server.cfg definierten");
        print(
"[Scripterror] Anzahl an maximalen Spielern ueberein!");
        print(
"[Scripterror] Serverstart wird abgebrochen!");
        
SendRconCommand("exit");
        return 
0;
    }
    
    new 
string[512],string_en[512];
    
#if defined HOSTER
        
format(MainHostNamesizeof MainHostName,"%s | %s",MainHostName,HOSTER);
        
SendRconCommand("mapname "#HOSTER);
    #endif
    
format(string,sizeof(string),"hostname %s",MainHostName);
    
SendRconCommand(string);//Hostname
    
    #if defined WEBSITE
        
SendRconCommand("weburl "#WEBSITE);
    #endif
    
SetGameModeText("DM+Gangs+Minigames+Stunt [GERMAN]");
    
SendRconCommand("loadfs yom_buttons");
    
    
MapAndreas_Init(MAP_ANDREAS_MODE_MINIMAL);
    
    if (!
DOF_FileExists(COOKIES_PRICE_FILE))
    {
        
DOF_CreateFile(COOKIES_PRICE_FILE);
        for (new 
0MAX_COOKIES_PRICESi++)
            
DOF_SetInt(COOKIES_PRICE_FILECookiePrices[i][cprName], CookiePrices[i][cprPrice]);
    } 



Re: debug error! - PuN1Sh3r - 18.01.2016

same problem ,doesn't work


Re: debug error! - PuN1Sh3r - 18.01.2016


this what i get exactly when i try to log in