Server Lag Problem ! [HELP QUICK]
#5

I loaded it but it says:

[17:03:14] [profiler] Attached profiler to 'gamemodes/DDRP.amx' (no debug info)

5 Players we try and server freeze we did it 10 times again same and i didnt see an html format in gamemodes folder so i change the format to txt and we try again and same, this not work.


With using crashdetect i got this:
pawn Код:
[17:40:16] [debug] Run time error 4: "Array index out of bounds"
[17:40:16] [debug]  Accessing element at index 682 past array upper bound 681
[17:40:16] [debug] AMX backtrace:
[17:40:16] [debug] #0 0000571c in ?? (0x43f98000, 0x42ce0000, 0x42d70000, 0x404ccccd, 0xff0000ff, 0x42c80000) from DDRP.amx
[17:40:16] [debug] #1 003ce814 in ?? (0x00000000) from DDRP.amx
[17:40:16] [debug] #2 000734f0 in ?? (0x00000000) from DDRP.amx
[17:40:16] [debug] #3 0000b5b8 in public OnPlayerSpawn (0x00000000) from DDRP.amx



pawn Код:
public OnPlayerSpawn(playerid)
{
    // Anti F4 Bug - Logging/Registering
   TogglePlayerSpectating(playerid, false);
   TextDrawHideForPlayer(playerid, Logintext0);
   TextDrawHideForPlayer(playerid, Logintext1);
   TextDrawHideForPlayer(playerid, Logintext2);
   TextDrawHideForPlayer(playerid, Logintext3);
   TextDrawHideForPlayer(playerid, Logintext4);
   TextDrawHideForPlayer(playerid, Logintext5);
   TextDrawHideForPlayer(playerid, Logintext6);
   StopAudioStreamForPlayer(playerid);
    if(!PlayerInfo[playerid][pLoggedIn] && !IsPlayerNPC(playerid))
    {
        if(IsPlayerNPC(playerid)) return 1;
        SetPlayerPos(playerid, 1975.203002, 3779.311523, -50.243506);
        SetPlayerCameraPos(playerid, 1975.203002, 3779.311523, 100.243506);
        SetPlayerCameraLookAt(playerid, 1975.203002, 3779.311523, -0.243506);
        SetSpawnInfo( playerid, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);/
        new xaor[512];
        format(xaor, sizeof(xaor), "users/%s.ini", RPNU(playerid));
        // Player isn't banned
        if(dini_Int(xaor, "AdminAccount") == 1)
        {
            format(xaor, sizeof(xaor), "users/%s.ini",RPNU(playerid));
            SetPlayerName(playerid, dini_Get(xaor, "OldName"));
            format(xaor, sizeof(xaor), "users/%s.ini", RPNU(playerid));
            SSSShowDialog(playerid, 2);
        }
        if(!dini_Exists(xaor))
        {
            SSSShowDialog(playerid, 1);
            return 1;
        }
        else
        {
            SSSShowDialog(playerid, 2);
        }
        return 1;
    }
    // Actual Spawning
    ResetPlayerWeapons(playerid);
    TextDrawShowForPlayer(playerid, randommsg);
    if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
    {
      new npcname[MAX_PLAYERS];
      GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
      if(!strcmp(npcname, "GOD", true)) //Checking if the NPC's name is GOD
      { //Putting the NPC into the vehicle we created for it.
        return 1;
      }
      return 1;
    }
    if(PlayerInfo[playerid][pLoggedIn] && PlayerInfo[playerid][pSpawn])
    {
        FalseBan[playerid] = 0;
        SetTimerEx("FalseBanFix", 6000, false, "i", playerid);
        SpawnChar(playerid);
    }
    if (!GetPVarInt(playerid, "color")) SetPVarInt(playerid, "color", 18643);
    return 1;
}
Reply


Messages In This Thread
Server Lag Problem ! [HELP QUICK] - by GBLTeam - 05.11.2014, 20:08
Re: Server Lag Problem ! [HELP QUICK] - by Simeon87 - 05.11.2014, 20:47
Re: Server Lag Problem ! [HELP QUICK] - by GBLTeam - 05.11.2014, 20:52
Re: Server Lag Problem ! [HELP QUICK] - by Simeon87 - 05.11.2014, 20:54
Re: Server Lag Problem ! [HELP QUICK] - by GBLTeam - 05.11.2014, 21:04

Forum Jump:


Users browsing this thread: 1 Guest(s)