Help me ! Server Auto Close
#1

Код:
[debug] Server crashed while executing SFNERP.amx
[debug] AMX backtrace:
[debug] #0 native Streamer_UpdateEx () [10013110] from streamer.dll
[debug] #1 00046a50 in ?? () from SFNERP.amx
[debug] #2 004412b8 in public @yT_10000_MainMenuUpdate () from SFNERP.amx
[debug] System backtrace:
[debug] #0 00492ac1 in ?? () from C:\Documents and Settings\Administrator\Desktop\Server\samp-server.exe
[debug] #1 004650df in ?? () from C:\Documents and Settings\Administrator\Desktop\Server\samp-server.exe
MainMenuUpdate

pawn Код:
Timer:MainMenuUpdate[10000]()
{
    foreach(Player, i)
    {
        if(PlayersConnected > 490)
        {
            if(playerTabbedTime[i] > 60 && PlayerInfo[i][pShopTech] < 1 && PlayerInfo[i][pAdmin] < 4)
            {
                Kick(i);
            }
            else if(playerAFK[i] != 0 && playerAFKTime[i] > 300 && PlayerInfo[i][pShopTech] < 1 && PlayerInfo[i][pAdmin] < 4)
            {
                Kick(i);
            }
        }
        new string[768];
        if(InsideMainMenu[i] == 1)
        {
            TextDrawSetString(MainMenuTxtdraw[7], Tooltips[random(sizeof(Tooltips))]);
            format(string, sizeof(string), "Logins: ~y~%d~w~ | Connections: ~y~%d~w~ | Registrations: ~y~%d~w~ | Hackers Autobanned: ~y~%d~w~ | Players Connected: ~y~%d~w~ | Peak Players: ~y~%d (%d/%d/%d)~w~", TotalLogin, TotalConnect, TotalRegister, TotalAutoBan, PlayersConnected, MaxPlayersConnected, MPDay,MPMonth,MPYear);
            TextDrawSetString(MainMenuTxtdraw[8], string);
            format(string, sizeof(string), "~y~MOTD~w~: %s", GlobalMOTD);
            TextDrawSetString(MainMenuTxtdraw[9], string);
            SetPlayerJoinCamera(i);
        }
        else if(InsideTut[i] == 1)
        {
            TextDrawSetString(MainMenuTxtdraw[7], Tooltips[random(sizeof(Tooltips))]);
            format(string, sizeof(string), "Logins: ~y~%d~w~ | Connections: ~y~%d~w~ | Registrations: ~y~%d~w~ | Hackers Autobanned: ~y~%d~w~ | Players Connected: ~y~%d~w~ | Peak Players: ~y~%d (%d/%d/%d)~w~", TotalLogin, TotalConnect, TotalRegister, TotalAutoBan, PlayersConnected, MaxPlayersConnected, MPDay,MPMonth,MPYear);
            TextDrawSetString(MainMenuTxtdraw[8], string);
            format(string, sizeof(string), "~y~MOTD~w~: %s", GlobalMOTD);
            TextDrawSetString(MainMenuTxtdraw[9], string);
        }
    }
}
Help me
Reply


Messages In This Thread
Help me ! Server Auto Close - by z0nzjn123 - 18.10.2013, 11:58
Re: Help me ! Server Auto Close - by z0nzjn123 - 19.10.2013, 05:17

Forum Jump:


Users browsing this thread: 1 Guest(s)