11.03.2012, 13:30
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
and one this script system
so how fix that?
[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;
}
Код:
SetTimerEx("removcar",10000,0,"i",playerid);

