19.06.2013, 10:42
(
Последний раз редактировалось David (Sabljak); 19.06.2013 в 12:08.
)
Hello, i have problems on Car Ownership...
I cant fix it...
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(!ispassenger) { if(VrstaVozilaInfo[vehicle[vehicleid]][Type] == 2) { if(haveveh[playerid] == 1 && TypeVehicleInfo[vehicleid][ID] == idvehicle[playerid]) { } else { if(VehicleInfo[idvehicle[playerid]][Locked] == 1) { new string[128]; new Float:x, Float:y, Float:z; GetPlayerPos(playerid,x,y,z); SetPlayerPos(playerid, x, y, z+0.2); format(string,sizeof(string)," (Vehicle Locked!) {B5B5B5}Owner: %s", VozilaInfo[idvozila[playerid]][Vlasnik]); SCM(playerid, TCrvena, string); return 1; } } } } return 1; }
Код:
[debug] Run time error 4: "Array index out of bounds" [debug] Accessing element at index 253 past array upper bound 199 [debug] AMX backtrace: [debug] #0 0004a9d0 in ?? (0x00000000, 0x000000fd, 0x00000000) from -/-.amx [debug] #1 00006080 in public OnPlayerEnterVehicle (0x00000000, 0x000000fd, 0x00000000)