Code doesn't work.
#2

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:

Код:
strcat(VehicleText, VehicleNames[vehicleid[0] -400]);
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.
Reply


Messages In This Thread
Code doesn't work. - by Michatex - 11.08.2018, 16:53
Re: Code doesn't work. - by NaS - 11.08.2018, 17:06
Re: Code doesn't work. - by NeXTGoD - 11.08.2018, 17:15
Re: Code doesn't work. - by Michatex - 11.08.2018, 17:43

Forum Jump:


Users browsing this thread: 1 Guest(s)