[Ajuda] Erro fatal Serve.log
#1

Bom galera achei que tinha resolvida o erro do da minha public so que estou errado

olha o o que aconteceu

PHP код:
DtenHost-21:45:36] [CMDYG_Mainfast (ID11digitou o comando ( /meucarro ).
[
DtenHost-21:45:40] [CMD] [BVJ]Okamiden (ID17digitou o comando ( /fecharevento ).
[
DtenHost-21:45:40] [debugRun time error 4"Array index out of bounds"
[DtenHost-21:45:40] [debug]  Accessing element at negative index -400
[DtenHost-21:45:40] [debugAMX backtrace:
[
DtenHost-21:45:40] [debug#0 00006e28 in ?? (0x0000059a) from BEG2.amx
[DtenHost-21:45:40] [debug#1 00027b1c in public VeloDiego () from BEG2.amx
[DtenHost-21:45:41] [debugRun time error 4"Array index out of bounds"
[DtenHost-21:45:41] [debug]  Accessing element at negative index -400
[DtenHost-21:45:41] [debugAMX backtrace:
[
DtenHost-21:45:41] [debug#0 00006e28 in ?? (0x00000595) from BEG2.amx
[DtenHost-21:45:41] [debug#1 00027b1c in public VeloDiego () from BEG2.amx
[DtenHost-21:45:42Buildings36 removidos(sde Buildings/Dten.txt para KirinGamer
[DtenHost-21:45:42Os animes foram prй carregados para KirinGamer.
[
DtenHost-21:45:42] [debugRun time error 4"Array index out of bounds"
[DtenHost-21:45:42] [debug]  Accessing element at negative index -400
[DtenHost-21:45:42] [debugAMX backtrace:
[
DtenHost-21:45:42] [debug#0 00006e28 in ?? (0x00000595) from BEG2.amx
[DtenHost-21:45:42] [debug#1 00027b1c in public VeloDiego () from BEG2.amx
[DtenHost-21:45:42] [CMDLeoIbia (ID7digitou o comando ( /procurados ).
[
DtenHost-21:45:43] [debugRun time error 4"Array index out of bounds"
[DtenHost-21:45:43] [debug]  Accessing element at negative index -400
[DtenHost-21:45:43] [debugAMX backtrace:
[
DtenHost-21:45:43] [debug#0 00006e28 in ?? (0x00000595) from BEG2.amx
[DtenHost-21:45:43] [debug#1 00027b1c in public VeloDiego () from BEG2.amx
[DtenHost-21:45:44] [debugRun time error 4"Array index out of bounds"
[DtenHost-21:45:44] [debug]  Accessing element at negative index -400
[DtenHost-21:45:44] [debugAMX backtrace:
[
DtenHost-21:45:44] [debug#0 00006e28 in ?? (0x00000595) from BEG2.amx
[DtenHost-21:45:44] [debug#1 00027b1c in public VeloDiego () from BEG2.amx
[DtenHost-21:45:44] [CMD] [BVJ]General_Teodoro (ID3digitou o comando ( /ca promove quem tem que promover  ).
[
DtenHost-21:45:45] [debugRun time error 4"Array index out of bounds"
[DtenHost-21:45:45] [debug]  Accessing element at negative index -400
[DtenHost-21:45:45] [debugAMX backtrace:
[
DtenHost-21:45:45] [debug#0 00006e28 in ?? (0x00000595) from BEG2.amx
[DtenHost-21:45:45] [debug#1 00027b1c in public VeloDiego () from BEG2.amx
[DtenHost-21:45:46] [chat] [EL_Loco_22]: alguem que ajuda?
[
DtenHost-21:45:46] [debugRun time error 4"Array index out of bounds"
[DtenHost-21:45:46] [debug]  Accessing element at negative index -400
[DtenHost-21:45:46] [debugAMX backtrace:
[
DtenHost-21:45:46] [debug#0 00006e28 in ?? (0x00000595) from BEG2.amx
[DtenHost-21:45:46] [debug#1 00027b1c in public VeloDiego () from BEG2.amx
[DtenHost-21:45:47] [debugRun time error 4"Array index out of bounds"
[DtenHost-21:45:47] [debug]  Accessing element at negative index -400
[DtenHost-21:45:47] [debugAMX backtrace:
[
DtenHost-21:45:47] [debug#0 00006e28 in ?? (0x00000595) from BEG2.amx
[DtenHost-21:45:47] [debug#1 00027b1c in public VeloDiego () from BEG2.amx
[DtenHost-21:45:48] [debugRun time error 4"Array index out of bounds"
[DtenHost-21:45:48] [debug]  Accessing element at negative index -400
[DtenHost-21:45:48] [debugAMX backtrace:
[
DtenHost-21:45:48] [debug#0 00006e28 in ?? (0x00000595) from BEG2.amx
[DtenHost-21:45:48] [debug#1 00027b1c in public VeloDiego () from BEG2.amx
[DtenHost-21:45:49] [debugRun time error 4"Array index out of bounds"
[DtenHost-21:45:49] [debug]  Accessing element at negative index -400
[DtenHost-21:45:49] [debugAMX backtrace:
[
DtenHost-21:45:49] [debug#0 00006e28 in ?? (0x00000595) from BEG2.amx
[DtenHost-21:45:49] [debug#1 00027b1c in public VeloDiego () from BEG2.amx
[DtenHost-21:45:51] [debugRun time error 4"Array index out of bounds"
[DtenHost-21:45:51] [debug]  Accessing element at negative index -400
[DtenHost-21:45:51] [debugAMX backtrace:
[
DtenHost-21:45:51] [debug#0 00006e28 in ?? (0x00000595) from BEG2.amx
[DtenHost-21:45:51] [debug#1 00027b1c in public VeloDiego () from BEG2.amx
[DtenHost-21:45:51] [CMDJean (ID2digitou o comando ( /minhacasa ).
[
DtenHost-21:45:52] [debugRun time error 4"Array index out of bounds"
[DtenHost-21:45:52] [debug]  Accessing element at negative index -400
Tem muito mais bug desses 


aki a public velodiego
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); //vid = GetPlayerVehicleID(playerid);
        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", GetVehicleName(vehicle));
            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)
            {

            }
        }
    }
}
Pra quem me ajudar dou + rep pelo esforзo
Reply
#2

e se eu troca-se minhas variaveis

tipo assim :

pawn Код:
new Text:IdBVJ        [ MAX_PLAYERS ];

pra

new Text:IdBVJ        [ MAX_VEHICLES ];
Reply
#3

Nгo faz sentido a public ser declarada assim
pawn Код:
VeloDiego(playerid)
Sendo que vocк usa um loop para os jogadores.


De que forma essa public й chamada?
Reply
#4

Quote:
Originally Posted by ViniBorn
Посмотреть сообщение
Nгo faz sentido a public ser declarada assim
pawn Код:
VeloDiego(playerid)
Sendo que vocк usa um loop para os jogadores.


De que forma essa public й chamada?
settime

TimersX[11] = SetTimer("VeloDiego", 1000, 1);
Reply
#5

Qual o tamanho declarado nessas variбveis? Sгo menores que MAX_PLAYERS?

pawn Код:
public VeloDiego() // Usa assim
Reply
#6

Quote:
Originally Posted by ViniBorn
Посмотреть сообщение
Qual o tamanho declarado nessas variбveis? Sгo menores que MAX_PLAYERS?

pawn Код:
public VeloDiego() // Usa assim
// Velocimetro
new Text:box [ MAX_PLAYERS ];
new Text:fahrzeug [ MAX_PLAYERS ];
new Text:mph [ MAX_PLAYERS ];
new Text:hoehe [ MAX_PLAYERS ];
new Text:combustivelt [ MAX_PLAYERS ];
new Text:gps [ MAX_PLAYERS ];
new Text:zustand [ MAX_PLAYERS ];
new Text:IdBVJ [ MAX_PLAYERS ];
Reply
#7

Deve ser essas variбveis que nao sao ultios
Reply
#8

cara vc nem usa playerid dentro da callback..

o loop ja faz isso.

faz como o viniborn falou.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)