08.03.2014, 00:32
to tentando arrumar esse erro a um tempгo mais nгo acho o defeito dessa phorra !
PHP Code:
[DtenHost-22:19:15] [debug] AMX backtrace:
[DtenHost-22:19:15] [debug] #0 00006e28 in ?? (0x000005ae) from BEG2.amx
[DtenHost-22:19:15] [debug] #1 00027e34 in public VeloDiego () from BEG2.amx
[DtenHost-22:19:15] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-22:19:15] [debug] Accessing element at negative index -400
[DtenHost-22:19:15] [debug] AMX backtrace:
[DtenHost-22:19:15] [debug] #0 00006e28 in ?? (0x000005ae) from BEG2.amx
[DtenHost-22:19:15] [debug] #1 00027e34 in public VeloDiego () from BEG2.amx
[DtenHost-22:19:15] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-22:19:15] [debug] Accessing element at negative index -400
[DtenHost-22:19:15] [debug] AMX backtrace:
[DtenHost-22:19:15] [debug] #0 00006e28 in ?? (0x000005ae) from BEG2.amx
[DtenHost-22:19:15] [debug] #1 00027e34 in public VeloDiego () from BEG2.amx
[DtenHost-22:19:15] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-22:19:15] [debug] Accessing element at negative index -400
[DtenHost-22:19:15] [debug] AMX backtrace:
[DtenHost-22:19:15] [debug] #0 00006e28 in ?? (0x000005ae) from BEG2.amx
[DtenHost-22:19:15] [debug] #1 00027e34 in public VeloDiego () from BEG2.amx
[DtenHost-22:19:15] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-22:19:15] [debug] Accessing element at negative index -400
[DtenHost-22:19:15] [debug] AMX backtrace:
[DtenHost-22:19:15] [debug] #0 00006e28 in ?? (0x000005ae) from BEG2.amx
[DtenHost-22:19:15] [debug] #1 00027e34 in public VeloDiego () from BEG2.amx
[DtenHost-22:19:15] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-22:19:15] [debug] Accessing element at negative index -400
[DtenHost-22:19:15] [debug] AMX backtrace:
[DtenHost-22:19:15] [debug] #0 00006e28 in ?? (0x000005ae) from BEG2.amx
[DtenHost-22:19:15] [debug] #1 00027e34 in public VeloDiego () from BEG2.amx
[DtenHost-22:19:15] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-22:19:15] [debug] Accessing element at negative index -400
[DtenHost-22:19:15] [debug] AMX backtrace:
[DtenHost-22:19:15] [debug] #0 00006e28 in ?? (0x000005ae) from BEG2.amx
[DtenHost-22:19:15] [debug] #1 00027e34 in public VeloDiego () from BEG2.amx
[DtenHost-22:19:16] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-22:19:16] [debug] Accessing element at negative index -400
[DtenHost-22:19:16] [debug] AMX backtrace:
[DtenHost-22:19:16] [debug] #0 00006e28 in ?? (0x000005ae) from BEG2.amx
[DtenHost-22:19:16] [debug] #1 00027e34 in public VeloDiego () from BEG2.amx
[DtenHost-22:19:16] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-22:19:16] [debug] Accessing element at negative index -400
[DtenHost-22:19:16] [debug] AMX backtrace:
[DtenHost-22:19:16] [debug] #0 00006e28 in ?? (0x000005ae) from BEG2.amx
[DtenHost-22:19:16] [debug] #1 00027e34 in public VeloDiego () from BEG2.amx
[DtenHost-22:19:16] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-22:19:16] [debug] Accessing element at negative index -400
[DtenHost-22:19:16] [debug] AMX backtrace:
[DtenHost-22:19:16] [debug] #0 00006e28 in ?? (0x000005ae) from BEG2.amx
[DtenHost-22:19:16] [debug] #1 00027e34 in public VeloDiego () from BEG2.amx
[DtenHost-22:19:16] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-22:19:16] [debug] Accessing element at negative index -400
[DtenHost-22:19:16] [debug] AMX backtrace:
[DtenHost-22:19:16] [debug] #0 00006e28 in ?? (0x000005ae) from BEG2.amx
[DtenHost-22:19:16] [debug] #1 00027e34 in public VeloDiego () from BEG2.amx
[DtenHost-22:19:16] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-22:19:16] [debug] Accessing element at negative index -400
[DtenHost-22:19:16] [debug] AMX backtrace:
[DtenHost-22:19:16] [debug] #0 00006e28 in ?? (0x000005ae) from BEG2.amx
[DtenHost-22:19:16] [debug] #1 00027e34 in public VeloDiego () from BEG2.amx
[DtenHost-22:19:16] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-22:19:16] [debug] Accessing element at negative index -400
[DtenHost-22:19:16] [debug] AMX backtrace:
[DtenHost-22:19:16] [debug] #0 00006e28 in ?? (0x000005ae) from BEG2.amx
[DtenHost-22:19:16] [debug] #1 00027e34 in public VeloDiego () from BEG2.amx
[DtenHost-22:19:16] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-22:19:16] [debug] Accessing element at negative index -400
[DtenHost-22:19:16] [debug] AMX backtrace:
[DtenHost-22:19:16] [debug] #0 00006e28 in ?? (0x000005ae) from BEG2.amx
[DtenHost-22:19:16] [debug] #1 00027e34 in public VeloDiego () from BEG2.amx
[DtenHost-22:19:16] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-22:19:16] [debug] Accessing element at negative index -400
[DtenHost-22:19:16] [debug] AMX backtrace:
[DtenHost-22:19:16] [debug] #0 00006e28 in ?? (0x000005ae) from BEG2.amx
[DtenHost-22:19:16] [debug] #1 00027e34 in public VeloDiego () from BEG2.amx
[DtenHost-22:19:16] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-22:19:16] [debug] Accessing element at negative index -400
[DtenHost-22:19:16] [debug] AMX backtrace:
[DtenHost-22:19:16] [debug] #0 00006e28 in ?? (0x000005ae) from BEG2.amx
[DtenHost-22:19:16] [debug] #1 00027e34 in public VeloDiego () from BEG2.amx
[DtenHost-22:19:17] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-22:19:17] [debug] Accessing element at negative index -400
[DtenHost-22:19:17] [debug] AMX backtrace:
[DtenHost-22:19:17] [debug] #0 00006e28 in ?? (0x000005ae) from BEG2.amx
[DtenHost-22:19:17] [debug] #1 00027e34 in public VeloDiego () from BEG2.amx
[DtenHost-22:19:17] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-22:19:17] [debug] Accessing element at negative index -400
[DtenHost-22:19:17] [debug] AMX backtrace:
[DtenHost-22:19:17] [debug] #0 00006e28 in ?? (0x000005ae) from BEG2.amx
[DtenHost-22:19:17] [debug] #1 00027e34 in public VeloDiego () from BEG2.amx
[DtenHost-22:19:17] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-22:19:17] [debug] Accessing element at negative index -400
[DtenHost-22:19:17] [debug] AMX backtrace:
[DtenHost-22:19:17] [debug] #0 00006e28 in ?? (0x000005ae) from BEG2.amx
[DtenHost-22:19:17] [debug] #1 00027e34 in public VeloDiego () from BEG2.amx
[DtenHost-22:19:17] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-22:19:17] [debug] Accessing element at negative index -400
[DtenHost-22:19:17] [debug] AMX backtrace:
[DtenHost-22:19:17] [debug] #0 00006e28 in ?? (0x000005ae) from BEG2.amx
[DtenHost-22:19:17] [debug] #1 00027e34 in public VeloDiego () from BEG2.amx
[DtenHost-22:19:17] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-22:19:17] [debug] Accessing element at negative index -400
[DtenHost-22:19:17] [debug] AMX backtrace:
[DtenHost-22:19:17] [debug] #0 00006e28 in ?? (0x000005ae) from BEG2.amx
[DtenHost-22:19:17] [debug] #1 00027e34 in public VeloDiego () from BEG2.amx
[DtenHost-22:19:17] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-22:19:17] [debug] Accessing element at negative index -400
[DtenHost-22:19:17] [debug] AMX backtrace:
[DtenHost-22:19:17] [debug] #0 00006e28 in ?? (0x000005ae) from BEG2.amx
[DtenHost-22:19:17] [debug] #1 00027e34 in public VeloDiego () from BEG2.amx
pawn Code:
public VeloDiego()
{
new Float:Speedo_X,Float:Speedo_Y,Float:Speedo_Z;
new Float:Speedo_HP;
for(new i=0; i<MAX_PLAYERS; i++)
{
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];
new newcar = GetPlayerVehicleID(i);
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]);
format(str1,sizeof(str1),"~w~~d~Veiculo: ~b~~h~~h~%s", GetVehicleName(GetPlayerVehicleID(i)));
TextDrawSetString(fahrzeug[i], str1);
format(str2,sizeof(str2),"~w~~d~KM/H: ~y~%d", GetPlayerSpeed(i, true));
TextDrawSetString(mph[i], str2);
if(IsACopCar(newcar) || IsAExCar(newcar) || IsAnAmbulanceCar(newcar) || IsAPoliciaCivilCar(newcar) || IsAPFCar(newcar) || IsAROTAMsCar(newcar) || IsAGOVCar(newcar))
{
format(str4,sizeof(str4),"~w~~d~Blindagem: ~r~~h~Sim");
}
else
{
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", GetVehicleModel(GetPlayerVehicleID(i)));
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;
}
}
}