Array Problem?
#8

Quote:
Originally Posted by Jefff
Посмотреть сообщение
Yes and wait for crash now, it will show which line
Alright...

pawn Код:
# avey\Desktop\Divoro\pawno\include\foreach.inc:637
[06:07:07] [debug] Run time error 4: "Array index out of bounds"
[06:07:07] [debug] Accessing element at index 9 past array upper bound 8
[06:07:07] [debug] AMX backtrace:
[06:07:07] [debug] #0 000390ac in IsTruckerVehicle (vehicleid=133) at C:\Users\Davey\Desktop\Divoro\gamemodes\d-rp.pwn:2616
[06:07:07] [debug] #1 00082c38 in public OnVehicleSpawn (vehicleid=133) at C:\Users\Davey\Desktop\Divoro\gamemodes\d-rp.pwn:6598
[06:07:07] [debug] #2 native SetVehicleToRespawn () [080d46b0] from samp03svr
[06:07:07] [debug] #3 00072438 in public RL_OnGameModeInit () at C:\Users\Davey\Desktop\Divoro\gamemodes\d-rp.pwn:5271
[06:07:07] [debug] #4 native CallLocalFunction () [080dce40] from samp03svr
[06:07:07] [debug] #5 0000cf84 in public zcmd_OnGameModeInit () at C:\Users\Davey\Desktop\Divoro\pawno\include\OPSP.inc:340
[06:07:07] [debug] #6 native CallLocalFunction () [080dce40] from samp03svr
[06:07:07] [debug] #7 0000a034 in public SSCANF_OnGameModeInit () at C:\Users\Davey\Desktop\Divoro\pawno\include\zcmd.inc:68
[06:07:07] [debug] #8 native CallLocalFunction () [080dce40] from samp03svr
[06:07:07] [debug] #9 0000362c in public Itter_OnGameModeInit () at C:\Users\Davey\Desktop\Divoro\pawno\include\sscanf2.inc:84
[06:07:07] [debug] #10 native CallLocalFunction () [080dce40] from samp03svr
[06:07:07] [debug] #11 000026ac in public OnGameModeInit () at C:\Users\Davey\Desktop\Divoro\pawno\include\foreach.inc:637
[06:07:07] [debug] Run time error 4: "Array index out of bounds"
[06:07:07] [debug] Accessing element at index 9 past array upper bound 8
[06:07:07] [debug] AMX backtrace:
[06:07:07] [debug] #0 000390ac in IsTruckerVehicle (vehicleid=134) at C:\Users\Davey\Desktop\Divoro\gamemodes\d-rp.pwn:2616
[06:07:07] [debug] #1 00082c38 in public OnVehicleSpawn (vehicleid=134) at C:\Users\Davey\Desktop\Divoro\gamemodes\d-rp.pwn:6598
[06:07:07] [debug] #2 native SetVehicleToRespawn () [080d46b0] from samp03svr
[06:07:07] [debug] #3 00072438 in public RL_OnGameModeInit () at C:\Users\Davey\Desktop\Divoro\gamemodes\d-rp.pwn:5271
[06:07:07] [debug] #4 native CallLocalFunction () [080dce40] from samp03svr
[06:07:07] [debug] #5 0000cf84 in public zcmd_OnGameModeInit () at C:\Users\Davey\Desktop\Divoro\pawno\include\OPSP.inc:340
[06:07:07] [debug] #6 native CallLocalFunction () [080dce40] from samp03svr
[06:07:07] [debug] #7 0000a034 in public SSCANF_OnGameModeInit () at C:\Users\Davey\Desktop\Divoro\pawno\include\zcmd.inc:68
[06:07:07] [debug] #8 native CallLocalFunction () [080dce40] from samp03svr
[06:07:07] [debug] #9 0000362c in public Itter_OnGameModeInit () at C:\Users\Davey\Desktop\Divoro\pawno\include\sscanf2.inc:84
[06:07:07] [debug] #10 native CallLocalFunction () [080dce40] from samp03svr
[06:07:07] [debug] #11 000026ac in public OnGameModeInit () at C:\Users\Davey\Desktop\Divoro\pawno\include\foreach.inc:637
[06:07:07]
5271
pawn Код:
SetVehicleToRespawn(i);
6598
pawn Код:
if(IsTruckerVehicle(vehicleid))
2616
pawn Код:
if(vehicleid == JobInfo[JOB_TRUCKER][jCars][i]) return 1;
Reply


Messages In This Thread
Array Problem? - by lulo356 - 12.12.2014, 20:38
Re: Array Problem? - by Mic_H - 12.12.2014, 21:27
Re: Array Problem? - by lulo356 - 12.12.2014, 21:32
Re: Array Problem? - by lulo356 - 12.12.2014, 22:26
Re: Array Problem? - by Jefff - 12.12.2014, 22:47
Re: Array Problem? - by lulo356 - 12.12.2014, 23:22
Re: Array Problem? - by Jefff - 13.12.2014, 01:43
Re: Array Problem? - by lulo356 - 13.12.2014, 02:22
Re: Array Problem? - by lulo356 - 15.12.2014, 19:05
Re: Array Problem? - by Jefff - 15.12.2014, 20:56

Forum Jump:


Users browsing this thread: 1 Guest(s)