Server shutingdown
#1

Код HTML:
[15:15:16] [debug] Run time error 4: "Array index out of bounds"
[15:15:16] [debug]  Accessing element at index 65535 past array upper bound 1999// i thing hear's the problem
[15:15:16] [debug] AMX backtrace:
[15:15:16] [debug] #0 00163534 in ?? () from TGP.amx
[15:15:16] [debug] #1 000b8504 in public OnPlayerSpawn () from TGP.amx
Sometimes server shuts down, but i can't understand whear is the bug and when it's crashing
Reply
#2

The error is in some function called from OnPlayerSpawn. The function name is unknown (??) because there's no debug information in your .amx. If you want to know the function name and the error line number:

https://github.com/Zeex/samp-plugin-...in-stack-trace
Reply
#3

Quote:
Originally Posted by xeeZ
Посмотреть сообщение
The error is in some function called from OnPlayerSpawn. The function name is unknown (??) because there's no debug information in your .amx. If you want to know the function name and the error line number:

https://github.com/Zeex/samp-plugin-...in-stack-trace
using it, still the same
Reply
#4

post code from public OnPlayerSpawn ()
Reply
#5

pawn Код:
public OnPlayerSpawn(playerid)
{
    //TextDrawShowForPlayer(playerid, laikas); // rodom textdrawą :)
    StopAudioStreamForPlayer(playerid);
    TextDrawShowForPlayer(playerid,tgp0);
    if(playerDB[playerid][naujokas]==true)
    {
        if(playerDB[playerid][lytis]==1)
        {
            ShowPlayerDialog(playerid, 871, DIALOG_STYLE_MSGBOX,"{00CC00}[{FF0000}Serveris{00CC00}]", "Sveiki atvykę į TGP-life.lt\nKilus klausimams galite susisiekti skype: tgp-life\nLinkime gerai praleisti laiką ", "Gerai", "");
            SetPlayerFacingAngle(playerid, 265.9923);
            GivePlayerMoneyA(playerid,60000);
            playerDB[playerid][pinigai]=60000;
            SetPlayerScore(playerid,1800);
            SetPlayerPos(playerid,-1957.4167,131.7217,27.6735);
            SetPlayerSkin(playerid,22);
            playerDB[playerid][drabuziai]=22;
        }
        else
        {
            ShowPlayerDialog(playerid, 871, DIALOG_STYLE_MSGBOX,"{00CC00}[{FF0000}Serveris{00CC00}]", "Sveiki atvykę į TGP-life.lt\nKilus klausimams galite susisiekti skype: tgp-life\nLinkime gerai praleisti laiką ", "Gerai", "");
            SetPlayerFacingAngle(playerid, 265.9923);
            GivePlayerMoneyA(playerid,60000);
            playerDB[playerid][pinigai]=60000;
            SetPlayerScore(playerid,1800);
            SetPlayerPos(playerid,-1957.4167,131.7217,27.6735);
            SetPlayerSkin(playerid,12);
            playerDB[playerid][drabuziai]=12;
        }
        playerDB[playerid][naujokas] = false;
        playerDB[playerid][zaidzia]=3;
        zaidimast[playerid]=SetTimerEx("Zaidimas",60000,true,"i",playerid);
        SetPlayerFacingAngle(playerid, 265.9923);
        SetPlayerColor(playerid, 0x80808000);
        return 1;
    }
    if(playerDB[playerid][mires] == true)
    {
        SetPlayerInterior(playerid, 3);
        playerDB[playerid][mires] = false;
    }
    if(playerDB[playerid][ikalintas])
    {
        JailPlayer(playerid, playerDB[playerid][kalejimo_laikas]);
    }
    if(playerDB[playerid][zaidzia]==2)
    {
        KraunamZaideja(playerid);
        KraunamMasina1( playerid );
        KraunamMasina2( playerid );
    }

    return 1;
}
it's all started after i change version from 0.3e to 0.3x
Reply
#6

bump
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)