Using Colon instead of Paren. to define params in #define
#2

i just read that thread, and read the guide last sunday completely through, searched it again today to see if there was anything on this.

but i am guessing the answer is no.

edit: FAIL, again on my part, just went to your thread and saw that you use this (sort of), now i am wondering why it gave me like 500 errors (8)

edit2: thinking i am on to something by doing this, experimenting now

pawn Код:
#define Coord:%1(%2) Float:%1x, Float:%1y, Float:%1z
edit3: this requires me to do
pawn Код:
new Coord:lol();
me no-likey

edit4: Half win. i got it too work by doing this
pawn Код:
#define Coord:%1; Float:%1x, Float:%1y, Float:%1z;
(the semicolons)
but now it won't really work for passing it to a function, (i got around the re-casting the tag)
Reply


Messages In This Thread
Using Colon instead of Paren. to define params in #define - by Daren_Jacobson - 05.11.2009, 23:30
Re: Using Colon instead of Paren. to define params in #define - by Daren_Jacobson - 05.11.2009, 23:48

Forum Jump:


Users browsing this thread: 1 Guest(s)