#define MAX_BLABLABLA Exceeds
#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


Messages In This Thread
delete - by Omirrow - 29.06.2013, 23:58
Respuesta: #define MAX_BLABLABLA Exceeds - by JustBored - 30.06.2013, 00:38
delete - by Omirrow - 30.06.2013, 00:49
Respuesta: #define MAX_BLABLABLA Exceeds - by JustBored - 30.06.2013, 01:10
delete - by Omirrow - 30.06.2013, 01:28
delete - by Omirrow - 30.06.2013, 09:25
delete - by Omirrow - 30.06.2013, 13:13

Forum Jump:


Users browsing this thread: 4 Guest(s)