12.02.2017, 12:14
Quote:
|
I've experienced the same warning before, and defining the enum with a different syntax seems to stop it:
PHP код:
![]() |
Код:
../linkmania/races.inc(81) : error 021: symbol already defined: "vRace" ../linkmania/races.inc(812) : error 032: array index out of bounds (variable "E_VEHICLE")
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;
}
}



