26.09.2016, 07:35
PHP код:
new labelstring[300];
new vehicleModel = hVehicleData[playerid][i][ModelID];
format(labelstring, sizeof(labelstring), "{58D3F7}[House Car] \n Name: %s \n Owner: %s", vehicleNames[vehicleModel - 400], pname);
hVehicleData[playerid][i][hvLabel] = CreateDynamic3DTextLabel(labelstring, COLOR_WHITE, 0.0, 0.0, 1.2, 15.0, INVALID_PLAYER_ID, hVehicleData[playerid][i][hVehicleID], 0, 0, -1, -1);
Код:
[09:27:27] [debug] Run time error 4: "Array index out of bounds" [09:27:27] [debug] Accessing element at negative index -400 [09:27:27] [debug] AMX backtrace: [09:27:27] [debug] #0 000ae568 in ?? () from CnR1.amx [09:27:27] [debug] #1 00180aa4 in ?? () from CnR1.amx [09:27:27] [debug] #2 00038ff4 in public FC_OnPlayerConnect () from CnR1.amx [09:27:27] [debug] #3 native CallLocalFunction () [004743b0] from samp-server.exe [09:27:27] [debug] #4 000386a8 in ?? () from CnR1.amx [09:27:27] [debug] #5 000188f4 in public MP_OPC () from CnR1.amx [09:27:27] [debug] #6 native CallLocalFunction () [004743b0] from samp-server.exe [09:27:27] [debug] #7 0001340c in ?? () from CnR1.amx [09:27:27] [debug] #8 0000ab28 in ?? () from CnR1.amx [09:27:27] [debug] #9 00008b98 in ?? () from CnR1.amx [09:27:27] [debug] #10 00001288 in public OnPlayerConnect () from CnR1.amx