#define MAX_BLABLABLA Exceeds - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: #define MAX_BLABLABLA Exceeds (
/showthread.php?tid=447429)
delete -
Omirrow - 29.06.2013
delete
Respuesta: #define MAX_BLABLABLA Exceeds -
JustBored - 30.06.2013
No, it calculates 100.
delete -
Omirrow - 30.06.2013
delete
Respuesta: #define MAX_BLABLABLA Exceeds -
JustBored - 30.06.2013
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
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.
delete -
Omirrow - 30.06.2013
delete
delete -
Omirrow - 30.06.2013
delete
delete -
Omirrow - 30.06.2013
delete