SA-MP Forums Archive
Accessing element at index 400 past array upper bound 211 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Accessing element at index 400 past array upper bound 211 (/showthread.php?tid=651442)



Accessing element at index 400 past array upper bound 211 - Foxer123456 - 20.03.2018

hi can you help my with this.

what i need to change ?

code

Код HTML:
format(str, sizeof(str), "{ffffff}first rank transport: {b643ff}%s (ID %d)\n", VehicleNames[jobDB[jobid][RangoTr][1] - 400], jobDB[jobid][RangoTr][1]);
                        strcat(string, str);



Re: Accessing element at index 400 past array upper bound 211 - PowerMwK - 20.03.2018

PHP код:
format(strsizeof(str), "{ffffff}first rank transport: {b643ff}%s (ID %d)\n"VehicleNames[jobDB[jobid][RangoTr][1] - 400], jobDB[jobid][RangoTr][1]);
SendClientMessage(playerid, -1string);