CrashDetect Log Problems..
#1

pawn Код:
[21:42:12]Character file loaded successfuly.
[21:42:12] [debug] Run time error 4: "Array index out of bounds"
[21:42:12] [debug]  Accessing element at index 682 past array upper bound 681
[21:42:12] [debug] AMX backtrace:
[21:42:12] [debug] #0 00006f4c in Bar:CreateProgressBar (Float:x=499.00000, Float:y=103.00000, Float:width=107.50000, Float:height=3.20000, color=-16776961, Float:max=100.00000) at D:\SA-MP\SAMP BS [2013]\LSC-RP\PB-RP[0.3z]\pawno\include\progress.inc:71
[21:42:12] [debug] #1 004ccbc0 in SpawnChar (playerid=2) at D:\SA-MP\SAMP BS [2013]\PB-RP[0.3z]\MOD PROBA DEALERSHIP AVS\PBRP.pwn:62920
[21:42:12] [debug] #2 00091668 in ?? (... <1 argument>) at D:\SA-MP\SAMP BS [2013]\PB-RP[0.3z]\MOD PROBA DEALERSHIP AVS\PBRP.pwn:10373
[21:42:12] [debug] #3 0000e120 in public OnPlayerSpawn (playerid=2) at D:\SA-MP\SAMP BS [2013]\PB-RP[0.3z]\pawno\include\YSI\y_hooks/impl.inc:710
[21:42:12] [debug] Run time error 4: "Array index out of bounds"
[21:42:12] [debug]  Accessing element at index 682 past array upper bound 681
[21:42:12] [debug] AMX backtrace:
[21:42:12] [debug] #0 00006f4c in Bar:CreateProgressBar (Float:x=499.00000, Float:y=103.00000, Float:width=107.50000, Float:height=3.20000, color=-16776961, Float:max=100.00000) at D:\SA-MP\SAMP BS [2013]\LSC-RP\PB-RP[0.3z]\pawno\include\progress.inc:71
[21:42:12] [debug] #1 004ccbc0 in SpawnChar (playerid=2) at D:\SA-MP\SAMP BS [2013]\PB-RP[0.3z]\MOD PROBA DEALERSHIP AVS\PBRP.pwn:62920
[21:42:12] [debug] #2 00091668 in ?? (... <1 argument>) at D:\SA-MP\SAMP BS [2013]\PB-RP[0.3z]\MOD PROBA DEALERSHIP AVS\PBRP.pwn:10373
[21:42:12] [debug] #3 0000e120 in public OnPlayerSpawn (playerid=2) at D:\SA-MP\SAMP BS [2013]\PB-RP[0.3z]\pawno\include\YSI\y_hooks/impl.inc:710
The line from GM 62920:
pawn Код:
SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
The line 10373:
pawn Код:
SetTimerEx("FalseBanFix", 6000, false, "i", playerid);


OnPlayerSpawn:
pawn Код:
public OnPlayerSpawn(playerid)
{
    TogglePlayerSpectating(playerid, false);
    // Anti F4 Bug - Logging/Registering
   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 file[128];
        format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
        // Player isn't banned
        if(dini_Int(file, "AdminAccount") == 1)
        {
            format(file, sizeof(file), "users/%s.ini",RPNU(playerid));
            SetPlayerName(playerid, dini_Get(file, "OldName"));
            format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
            SSSShowDialog(playerid, 2);
        }
        if(!dini_Exists(file))
        {
            SSSShowDialog(playerid, 1);
            return 1;
        }
        else
        {
            SSSShowDialog(playerid, 2);
        }
        return 1;
    }
    // Actual Spawning
    TextDrawShowForPlayer(playerid, randommsg);
    ResetPlayerWeapons(playerid);
    if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
    {
      new npcname[MAX_PLAYER_NAME];
      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
#2

I think is from your YSI include , verify if you have the last updated version
Reply
#3

Quote:
Originally Posted by terrow
Посмотреть сообщение
I think is from your YSI include , verify if you have the last updated version
I already had the latest version of YSI includes.
Reply
#4

Bump.... Still having this problems.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)