DtenHost-21:45:36] [CMD] YG_Mainfast (ID: 11) digitou o comando ( /meucarro ).
[DtenHost-21:45:40] [CMD] [BVJ]Okamiden (ID: 17) digitou o comando ( /fecharevento ).
[DtenHost-21:45:40] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-21:45:40] [debug] Accessing element at negative index -400
[DtenHost-21:45:40] [debug] AMX 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] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-21:45:41] [debug] Accessing element at negative index -400
[DtenHost-21:45:41] [debug] AMX 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:42] Buildings: 36 removidos(s) de Buildings/Dten.txt para KirinGamer
[DtenHost-21:45:42] Os animes foram prй carregados para KirinGamer.
[DtenHost-21:45:42] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-21:45:42] [debug] Accessing element at negative index -400
[DtenHost-21:45:42] [debug] AMX 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] [CMD] LeoIbia (ID: 7) digitou o comando ( /procurados ).
[DtenHost-21:45:43] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-21:45:43] [debug] Accessing element at negative index -400
[DtenHost-21:45:43] [debug] AMX 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] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-21:45:44] [debug] Accessing element at negative index -400
[DtenHost-21:45:44] [debug] AMX 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 (ID: 3) digitou o comando ( /ca promove quem tem que promover ).
[DtenHost-21:45:45] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-21:45:45] [debug] Accessing element at negative index -400
[DtenHost-21:45:45] [debug] AMX 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] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-21:45:46] [debug] Accessing element at negative index -400
[DtenHost-21:45:46] [debug] AMX 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] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-21:45:47] [debug] Accessing element at negative index -400
[DtenHost-21:45:47] [debug] AMX 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] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-21:45:48] [debug] Accessing element at negative index -400
[DtenHost-21:45:48] [debug] AMX 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] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-21:45:49] [debug] Accessing element at negative index -400
[DtenHost-21:45:49] [debug] AMX 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] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-21:45:51] [debug] Accessing element at negative index -400
[DtenHost-21:45:51] [debug] AMX 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] [CMD] Jean (ID: 2) digitou o comando ( /minhacasa ).
[DtenHost-21:45:52] [debug] Run time error 4: "Array index out of bounds"
[DtenHost-21:45:52] [debug] Accessing element at negative index -400
Tem muito mais bug desses
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)
{
}
}
}
}
new Text:IdBVJ [ MAX_PLAYERS ];
pra
new Text:IdBVJ [ MAX_VEHICLES ];
VeloDiego(playerid)
Nгo faz sentido a public ser declarada assim
pawn Код:
De que forma essa public й chamada? |
public VeloDiego() // Usa assim
Qual o tamanho declarado nessas variбveis? Sгo menores que MAX_PLAYERS?
pawn Код:
|