30.06.2013, 01:10
I dont understand very well your question. Otherwise i will explain you something.
When you use the #define the compiler compiles it as the defined thing, for example if you do this:
The compiler will compile it as
The compiler just replaces that thing with the defined thing. If you want to increase that number you have to make a variable for example instead of:
You can do:
I think thats what you want to know.
When you use the #define the compiler compiles it as the defined thing, for example if you do this:
pawn Code:
#define LOOP_ONE 100
for(new i; i < LOOP_ONE; i++)
//blabla
pawn Code:
for(new i; i < 100; i++)
pawn Code:
#define MAX_TESTS 100
new Auto_Increment = 102;
for(unknown = 0; unknown < MAX_TESTS; unknown++)
pawn Code:
new MAX_TESTS;
new Auto_Increment = 102;
Max_Tests = Auto_Increment;
for(unknown = 0; unknown < MAX_TESTS; unknown++)