Errors in crashdetect "Array index out of bounds" x2
#6

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
It's not :
Код:
VehicleName[GetVehicleModel(vehicleid)-400]
it'ts:
Код:
VehicleName[GetVehicleModel(vehicleid)+400]
That would not make any sense.

Код:
new VehicleName[212]
OP, I think you should to the calculations outside the array, like this:

PHP код:
new vehname GetVehicleModel(vehicleid) - 400;
format(bla,sizeof bla,"bla bla veh name %s",VehicleName[vehname]); 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)