SPEEDO - Run time error 4: "Array index out of bounds"
#7

It's this line that's causing the error i think.

pawn Код:
format(strg2, sizeof(strg2), " ` ~r~~h~Vehicle: ~w~%s", VehicleName1[GetVehicleModel(vehicleid)-400]);
It looks like GetVehicleModel(vehicleid) is returning zero, in which case you are doing this.

pawn Код:
format(strg2, sizeof(strg2), " ` ~r~~h~Vehicle: ~w~%s", VehicleName1[-400]);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)