11.08.2018, 17:06
Looks like vehicleid[0] or vehicleid[1] have the value 0, since you subtract 400 from it and it accesses index -400 which is invalid:
You should check if the values were successfully loaded before accessing an array with them.
Also, is it a Vehicle ID or a Model ID? Since Models start at 400, and Vehicle IDs at 1. So either way, the ID is invalid.
Код:
strcat(VehicleText, VehicleNames[vehicleid[0] -400]);
Also, is it a Vehicle ID or a Model ID? Since Models start at 400, and Vehicle IDs at 1. So either way, the ID is invalid.