11.12.2012, 19:42
Southclaw,
Thank you for your great post!
It helped me a lot!
I was only concentrated on the first EditAccount-stuff ....
I already got it ... but i didn`t know how to work without the "`s and with the #-character (saw it in pawn-lang.pdf).
I didn`t know what i do.
Its working:
My "edited" version:
There isn`t a big difference, but maybe it helps me (and others) to understand it!
.:: SOLVED ::.
~ Kevin
Thank you for your great post!
It helped me a lot!
Quote:
Okay definitions are EXACT replacements, so to debug one simply put the code in the place of the definition:
Therefore, after the compiler replaces that code you end up with: pawn Code:
|
I already got it ... but i didn`t know how to work without the "`s and with the #-character (saw it in pawn-lang.pdf).
I didn`t know what i do.
Its working:
pawn Code:
Acc(Level,"47");
#define Acc(%0,%1);
EditAccount(playerid, #%0, #%1, 0);
Account[playerid][%0] = %1;
pawn Code:
Acc("Level",47);
#define Acc("%0",%1); \
EditAccount(playerid,#%0,#%1, 0); \
Account[playerid][%0] = %1;
.:: SOLVED ::.
~ Kevin