30.12.2011, 02:47
Hello, i`ll get straight to my problem.
So, i`m trying to get a variable to stock my number of cars, which is easy.
Main bits of the code:
The problem is that, the variable gets stocked after the CAR_AMMOUNT is defined (carscounted being token as a "0").
So, how would i be able to stock the variable before the CAR_AMMOUNT is defined so "carscounted" will be token as the actual number of cars ?
So, i`m trying to get a variable to stock my number of cars, which is easy.
Main bits of the code:
Код:
#define CAR_AMMOUNT (carscounted+1) new carscounted; OnGameModeInit() //cars// carscounted = CountVehicles();
So, how would i be able to stock the variable before the CAR_AMMOUNT is defined so "carscounted" will be token as the actual number of cars ?