[Ajuda] "Ler array com valor negativo". Alguйm?
#1

Por favor, alguйm me ajuda?

pawn Code:
[16:05:57] [debug] AMX backtrace:
[16:05:57] [debug] #0 0008e60c in public UpdateCar@INFO (0) from GM.amx
[16:05:57] [debug] Run time error 4: "Array index out of bounds"
[16:05:57] [debug]  Attempted to read/write array element at negative index -400
Nгo sou expert, mas creio eu que a linha do erro й esta:

pawn Code:
format(String, sizeof(String), "%s", carName[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
Se necessitar da public completa, sу avisar que posto...
Reply


Messages In This Thread
"Ler array com valor negativo". Alguйm? - by Psicotico - 13.04.2019, 19:10
Re: "Ler array com valor negativo". Alguйm? - by MultiKill - 13.04.2019, 19:45
Re: "Ler array com valor negativo". Alguйm? - by Psicotico - 14.04.2019, 17:25

Forum Jump:


Users browsing this thread: 1 Guest(s)