Wierd enum warnings.
#1

-- DELETED --
Reply
#2

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
Reply
#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
#4

I suggest you to re-read this topic: https://sampforum.blast.hk/showthread.php?tid=318307

And why are you calling the arrays the same (almost the same) thing as enumators like what?? It's so confusing.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)