[Help] "Array index out of bounds"
#1

Hello, i have problems on Car Ownership...

Код:
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)
I cant fix it...
Reply


Messages In This Thread
[Help] "Array index out of bounds" - by David (Sabljak) - 19.06.2013, 10:42
Re: [Help] "Array index out of bounds" - by MP2 - 19.06.2013, 11:21
Re: [Help] "Array index out of bounds" - by David (Sabljak) - 19.06.2013, 12:02
Re: [Help] "Array index out of bounds" - by Vince - 19.06.2013, 12:18
Re: [Help] "Array index out of bounds" - by David (Sabljak) - 19.06.2013, 14:15
Re: [Help] "Array index out of bounds" - by David (Sabljak) - 19.06.2013, 22:18
Re: [Help] "Array index out of bounds" - by Scenario - 19.06.2013, 22:21
Re: [Help] "Array index out of bounds" - by MP2 - 20.06.2013, 04:15
Re: [Help] "Array index out of bounds" - by David (Sabljak) - 20.06.2013, 10:04

Forum Jump:


Users browsing this thread: 1 Guest(s)