#define MAX_BLABLABLA Exceeds
#1

delete
Reply
#2

No, it calculates 100.
Reply
#3

delete
Reply
#4

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:
pawn Code:
#define LOOP_ONE 100

for(new i; i < LOOP_ONE; i++)
//blabla
The compiler will compile it as
pawn Code:
for(new i; i < 100; i++)
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:
pawn Code:
#define MAX_TESTS 100
new Auto_Increment = 102;
for(unknown = 0; unknown < MAX_TESTS; unknown++)
You can do:
pawn Code:
new MAX_TESTS;
new Auto_Increment = 102;
Max_Tests = Auto_Increment;
for(unknown = 0; unknown < MAX_TESTS; unknown++)
I think thats what you want to know.
Reply
#5

delete
Reply
#6

delete
Reply
#7

delete
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)