20.09.2016, 16:22
Hello, i have a problem.
When use /createvehicle she say me: command does not exist but car spawned and label not showing.
i have
on server_log:
When use /createvehicle she say me: command does not exist but car spawned and label not showing.
Код:
new string[248]; format(string, sizeof(string), ""COL_GREEN"[VOZILO NA PRODAJU]\nIme vozila: "COL_WHITE"%s \n"COL_GREEN"Stanje: "COL_WHITE"Novo \n"COL_GREEN"Cijena:"COL_WHITE"%d", VehicleNames[GetVehicleModel(model) - 400], price); VehicleLabel[vehID] = CreateDynamic3DTextLabel(string, COLOR_GREEN, -1, -1, -1, 20.0, INVALID_PLAYER_ID, vehID, 1, -1, -1, -1, 20.0);
Код:
new Text3D: VehicleLabel[MAX_VEHICLES];
Код:
[18:16:16] [debug] Run time error 4: "Array index out of bounds" [18:16:16] [debug] Accessing element at negative index -400 [18:16:16] [debug] AMX backtrace: [18:16:16] [debug] #0 0007fdc8 in public cmd_createvehicle (0, 20104552) from usrpbeta.amx [18:16:16] [debug] #1 native CallLocalFunction () from samp-server.exe [18:16:16] [debug] #2 00011ccc in ?? (0, 20104444) from usrpbeta.amx [18:16:16] [debug] #3 000061e8 in public OnPlayerCommandText (0, 20104444) from usrpbeta.amx