Wierd enum warnings.
#3

Quote:
Originally Posted by Nate4
Посмотреть сообщение
I've experienced the same warning before, and defining the enum with a different syntax seems to stop it:

PHP код:
enum _:E_VEHICLE_DATA 
As opposed to the current syntax you've used. I don't understand what the issue/cause is, maybe someone else can explain it
But If I do that, I'm getting errors:

Код:
../linkmania/races.inc(81) : error 021: symbol already defined: "vRace"
../linkmania/races.inc(812) : error 032: array index out of bounds (variable "E_VEHICLE")
Even tho the variable vRace is only used in this enum, I'm still getting this error..
And this is the code for the second error.

Код:
stock UnloadRace()
{
	memset(E_ACTIVE_RACE, 0, E_RACES_DATA);
	
	foreach (new i : Vehicles) 
	{
		new next;

		if (E_VEHICLE[i][vRace] != 1)
			continue;
			
		created_vehicles --;
			
		DestroyVehicle(E_VEHICLE[i][vVehicle]);	
		VehicleIndex[E_VEHICLE[i][vVehicle]] = -1;
		
		ResetVehicleVariables(i);

		Iter_SafeRemove(Vehicles, i, next);
		i = next;
	}
}
Reply


Messages In This Thread
Wierd enum warnings. - by danielpalade - 12.02.2017, 02:29
Re: Wierd enum warnings. - by Nate4 - 12.02.2017, 06:24
Re: Wierd enum warnings. - by danielpalade - 12.02.2017, 12:14
Re: Wierd enum warnings. - by Runn3R - 12.02.2017, 12:57

Forum Jump:


Users browsing this thread: 1 Guest(s)