Helpme crash detect plugin i got logs
#1

Delete Thx a lot
Reply
#2

vehicleid = GetPlayerVehicleID(playerid);
and what if player is not in vehicle?? vehicleid == 0

next

GetVehicleModel(vehicleid) returns 0
VehicleNames[0 - 400]
0-400 = Run time error 4: "Array index out of bounds" because VehicleName[] is from 0-211

pawn Code:
format(Vehiclename, sizeof(Vehiclename), "%s", VehicleNames[GetVehicleModel(vehicleid) - 400]);
Solution:

Check if vehicleid > 0
Reply
#3

Thank Jefff
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)