05.06.2015, 09:50
I change from
to
like you said and still having the same error..
Code:
for(new i = 0; i < sizeof(FamilyInfo); i++) { for(new d = 0 ; d < MAX_GANG_VEHICLES; d++) { if(FamilyVehicleInfo[i][d][fvLocked] != 0 && FamilyVehicleInfo[i][d][fvLock] > 0) { LockGangVehicle(i, FamilyVehicleInfo[i][d][fvId], FamilyVehicleInfo[i][d][fvLock]); } } }
Code:
for(new i = 0; i < sizeof(FamilyInfo); i++) { for(new d = 0 ; d < MAX_GANG_VEHICLES; d++) { if(FamilyVehicleInfo[i][d][fvLocked] != 0 && FamilyVehicleInfo[i][d][fvLock] > 0 && 0 <= FamilyVehicleInfo[i][d][fvId] <= 1999) { LockGangVehicle(i, FamilyVehicleInfo[i][d][fvId], FamilyVehicleInfo[i][d][fvLock]); } } }
Code:
[11:34:17] [debug] Run time error 4: "Array index out of bounds" [11:34:17] [debug] Accessing element at index 65535 past array upper bound 1999 [11:34:17] [debug] AMX backtrace: [11:34:17] [debug] #0 003167a4 in ?? (0, 65535, 2) from Gamemode.amx [11:34:17] [debug] #1 00268178 in public OnVehicleSpawn (132) from Gamemode.amx [11:34:17] [debug] #2 native SetVehicleToRespawn () from samp-server.exe [11:34:17] [debug] #3 0023f0d0 in public Audio_OnGameModeInit () from Gamemode.amx [11:34:17] [debug] #4 native CallLocalFunction () from samp-server.exe [11:34:17] [debug] #5 00011650 in public SSCANF_OnGameModeInit () from Gamemode.amx [11:34:17] [debug] #6 0000b7f8 in public Timers_OnScriptInit () from Gamemode.amx [11:34:17] [debug] #7 native CallLocalFunction () from samp-server.exe [11:34:17] [debug] #8 0000b5e8 in public YVers_OnScriptInit () from Gamemode.amx [11:34:17] [debug] #9 native CallLocalFunction () from samp-server.exe [11:34:17] [debug] #10 0000a308 in public zcmd_OnGameModeInit () from Gamemode.amx [11:34:17] [debug] #11 native CallLocalFunction () from samp-server.exe [11:34:17] [debug] #12 00009d00 in public CB_OnGameModeInit () from Gamemode.amx [11:34:17] [debug] #13 0000455c in public Itter_OnGameModeInit () from Gamemode.amx [11:34:17] [debug] #14 native CallLocalFunction () from samp-server.exe [11:34:17] [debug] #15 00001264 in public OnGameModeInit () from Gamemode.amx