crash problem fix
#1

how fix that? [15:27:29]: Script[gamemodes\Life.amx]: During execution of removcar():
[15:27:29]: Script[gamemodes\Life.amx]: Run time error 4: "Array index out of bounds"
[15:27:29]: Additional information:
[15:27:29]: Array max index is 79 but accessing an element at -1

script
Код:
forward removcar(playerid);
public removcar(playerid)
{
 new vehicleid = GetPlayerVehicleID(playerid);

	TogglePlayerControllable(playerid,1);
	        SetVehicleParamsForAll(Buylist[Spectating[playerid][0]][Carid],0,0);
	        Spectating[playerid][0]=90;
	        SetVehicleToRespawn(vehicleid);
	        RemovePlayerFromVehicle(playerid);
	return 1;
}
and one this script system
Код:
SetTimerEx("removcar",10000,0,"i",playerid);
so how fix that?
Reply


Messages In This Thread
crash problem fix - by speed258 - 11.03.2012, 13:30
Re: crash problem fix - by speed258 - 11.03.2012, 13:34
Re: crash problem fix - by eesh - 11.03.2012, 13:47

Forum Jump:


Users browsing this thread: 1 Guest(s)