18.05.2007, 07:09
I hope this is what you want, this seems to work (read notes below though).
The only problem is that if I wanted to make a As Float version, it complains about re-definition .. .
You may find this of interest, but I was unable to find out how it works or if it's doing what I'd like it to do..
pawn Код:
#define Dim%1As%2Integer new %1;
#include <a_samp>
main() {
Dim ja As Integer
ja = 3;
printf("%d", ja);
}
You may find this of interest, but I was unable to find out how it works or if it's doing what I'd like it to do..
Quote:
Originally Posted by Page 95, pawn-lang.pdf
There may be no space characters in the pattern. If you must match a space,
you need to use the "\32;" escape sequence. The substitution text, on the other hand, may contain space characters. Due to the matching rules of the macro pattern (explained below), matching a space character is rarely needed. |