[Ajuda] erros na log
#1

Estou com um grande poblema pessoas estгo reiniciando e desligando meu servidor

pawn Код:
BVJ-11:30:16] [debug] Run time error 4: "Array index out of bounds"
[BVJ-11:30:16] [debug]  Accessing element at index 560 past array upper bound 211
[BVJ-11:30:16] [debug] AMX backtrace:
[BVJ-11:30:16] [debug] #0 00027ec4 in public VeloDiego () from BEG2.amx
[BVJ-11:30:17] [debug] Run time error 4: "Array index out of bounds"


pawn Код:
public VeloDiego(playerid)
{
    new Float:Speedo_X,Float:Speedo_Y,Float:Speedo_Z;
    new Float:Speedo_HP;
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        new vehicle = GetPlayerVehicleID(i);
        new modelo = GetVehicleModel(vehicle);
        if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
        {
            GetPlayerPos(i, Speedo_X, Speedo_Y, Speedo_Z);
            GetPlayerVehicleID(i);
            GetVehicleHealth(GetPlayerVehicleID(i), Speedo_HP);
            new str1[256],str2[256],str4[256],str6[256],str7[256];
            if(SpeedoON[i] == 0)
            {
                TextDrawShowForPlayer(i, box[i]);
                TextDrawShowForPlayer(i, fahrzeug[i]);
                TextDrawShowForPlayer(i, IdBVJ[i]);
                TextDrawShowForPlayer(i, mph[i]);
                TextDrawShowForPlayer(i, combustivelt[i]);
                TextDrawShowForPlayer(i, zustand[i]);
                TextDrawShowForPlayer(i, gps[i]);
                TextDrawShowForPlayer(i, hoehe[i]);
                SpeedoON[i] = 1;
            }
            format(str1,sizeof(str1),"~w~~d~Veiculo: ~b~~h~~h~%s",vehName[GetVehicleModel(vehicle)-400]);
            TextDrawSetString(fahrzeug[i], str1);
            format(str2,sizeof(str2),"~w~~d~KM/H: ~y~%d",GetPlayerSpeed(i, true));
            TextDrawSetString(mph[i], str2);
            format(str4,sizeof(str4),"~w~~d~Lataria: ~r~~h~%0.0f%%", Speedo_HP/10);
            TextDrawSetString(zustand[i], str4);
            format(str6,sizeof(str6),"~w~~d~Altura: ~p~~h~%.1f", Speedo_Z);
            TextDrawSetString(hoehe[i], str6);
            format(str7,sizeof(str7),"~w~~d~Id: ~g~%d", modelo);
            TextDrawSetString(IdBVJ[i], str7);
        }
        if(GPS_Spawned[i] == 1 && PlayerInfo[i][AreaName] != PlayerText:INVALID_TEXT_DRAW)
        {
            new str5[256];
            format(str5,sizeof(str5),"~w~~d~GPS: ~p~~h~%s", GetPlayerArea(i));
            TextDrawSetString(gps[i], str5);
        }
        SaveBVJPlayerPos[i][LastX] = Speedo_X, SaveBVJPlayerPos[i][LastY] = Speedo_Y, SaveBVJPlayerPos[i][LastZ] = Speedo_Z;

    }
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(!IsPlayerInAnyVehicle(i))
        {
            TextDrawHideForPlayer(i, box[i]);
            TextDrawHideForPlayer(i, fahrzeug[i]);
            TextDrawHideForPlayer(i, IdBVJ[i]);
            TextDrawHideForPlayer(i, mph[i]);
            TextDrawHideForPlayer(i, combustivelt[i]);
            TextDrawHideForPlayer(i, zustand[i]);
            TextDrawHideForPlayer(i, gps[i]);
            TextDrawHideForPlayer(i, hoehe[i]);
            SpeedoON[i] = 0;
        }
        if(spawnado[i] == 1)
        {
            if(SpeedoON[i] >= 1)
            {
           
            }
            if(SpeedoON[i] <= 0)
            {

            }
        }
    }
}
Reply
#2

u p ?
Reply
#3

public VeloDiego()

que no original й VeloThiago, que esse aн й do BML.
Reply
#4

Quote:
Originally Posted by DannielCooper
Посмотреть сообщение
public VeloDiego()

que no original й VeloThiago, que esse aн й do BML.
essa public nгo fui eu que criei e nem retirei ela de nenhum gm
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)