Server Crashes. Rep+ !
#6

I change from

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]);
			}
		}
	}
to

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]);
			}
		}
	}
like you said and still having the same error..

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
Reply


Messages In This Thread
Server Crashes. Rep+ ! - by stylehaziq01 - 04.06.2015, 06:10
Re: Server Crashes. Rep+ ! - by mamorunl - 04.06.2015, 07:54
Re: Server Crashes. Rep+ ! - by Konstantinos - 04.06.2015, 11:13
Re: Server Crashes. Rep+ ! - by stylehaziq01 - 05.06.2015, 09:24
Re: Server Crashes. Rep+ ! - by Konstantinos - 05.06.2015, 09:32
Re: Server Crashes. Rep+ ! - by stylehaziq01 - 05.06.2015, 09:50
Re: Server Crashes. Rep+ ! - by Konstantinos - 05.06.2015, 10:05
Re: Server Crashes. Rep+ ! - by stylehaziq01 - 05.06.2015, 10:10
Re: Server Crashes. Rep+ ! - by Konstantinos - 05.06.2015, 10:17

Forum Jump:


Users browsing this thread: 1 Guest(s)