01.08.2012, 12:31
Hello - this time I need help. I'm using something like:
Yup, I'm lazy. Anyway: it works fine for something like:
But sometimes in my script I have something like:
Format accepted my multline syntax, but define didn't and I get
Can I somehow make define to respect multiline syntax too?
pawn Код:
#define merge(%0,%1) \
format(%0, sizeof(%0), %1)
pawn Код:
new str[32];
merge(str, "%s: %s", "Pancakes are", "AWESOME");
pawn Код:
new str[499+1];
merge(str, "%s, %d, %s, %s, %s, %d, $%d, $%d",
UData[playerid][uname], UData[playerid][age], UData[playerid][sex], "Something", UData[playerid][strength], UData[playerid][uid], UData[playerid][cash], UData[playerid][bank_cash]);
Quote:
error 017: undefined symbol "merge" |