AMX backtrace
#5

I think these lines are causing that runtime error, because you simply didn't check if "bos" is valid array index.
Код:
new bos = PlayerInfo[x][pWSBos];
GetVehiclePos(WsInfo[bos][wsVehicleId][i], vx, y, z);
GetVehicleZAngle(WsInfo[bos][wsVehicleId][i], a);
WsInfo[bos][wsVehicleX][i] = vx;
WsInfo[bos][wsVehicleY][i] = y;
WsInfo[bos][wsVehicleZ][i] = z;
WsInfo[bos][wsVehicleAngle][i] = a;
Remove them with these:
Код:
new bos = PlayerInfo[x][pWSBos];
if(bos == -1)
	continue;
GetVehiclePos(WsInfo[bos][wsVehicleId][i], vx, y, z);
GetVehicleZAngle(WsInfo[bos][wsVehicleId][i], a);
WsInfo[bos][wsVehicleX][i] = vx;
WsInfo[bos][wsVehicleY][i] = y;
WsInfo[bos][wsVehicleZ][i] = z;
WsInfo[bos][wsVehicleAngle][i] = a;
Edit: If it doesn't fix your problem, try recompile your script with -d3 flag as Sreyas said.
Reply


Messages In This Thread
AMX backtrace - by Wahyu33 - 06.02.2017, 12:52
Re: AMX backtrace - by Misiur - 06.02.2017, 13:24
Re: AMX backtrace - by Wahyu33 - 07.02.2017, 14:55
Re: AMX backtrace - by SyS - 07.02.2017, 15:00
Re: AMX backtrace - by X337 - 07.02.2017, 15:05
Re: AMX backtrace - by Wahyu33 - 08.02.2017, 13:57
Re: AMX backtrace - by TopShooter - 08.02.2017, 13:59
Re: AMX backtrace - by Wahyu33 - 10.02.2017, 12:01
Re: AMX backtrace - by Wahyu33 - 10.02.2017, 12:05
Re: AMX backtrace - by StrikerZ - 10.02.2017, 12:10

Forum Jump:


Users browsing this thread: 1 Guest(s)