Posts: 413
Threads: 59
Joined: Sep 2013
Quote:
Originally Posted by ******
That's really not better!
pawn Код:
return K_TextDrawCreate(whatever); // Error.
|
What?
Quote:
Originally Posted by EnzoMetlc
You can do a macro before that a function, this way, the compilation would be more rapid.
In yes, this include is really unnecessary, since you do not have functions added in the same ones ... ... in addition, it would give mistakes for all sides, since they do not go tag's.
This one would be better:
pawn Код:
#define K_TextDrawCreate(Text:%0, Float:%1, Float:%2, %3, %4, %5, %6, %7, Float:%8, Float:%9, %10) \ %0 = TextDrawCreate(%1, %2, %3); \ TextDrawBackgroundColor(%0, %4); \ TextDrawFont(%0, %5); \ TextDrawLetterSize(%0, %6, %7); \ TextDrawColor(%0, %8); \ TextDrawSetOutline(%0, %9); \ TextDrawSetProportional(%0, %10); #define K_TextDrawShowForPlayer(%0, Text:%1) TextDrawShowForPlayer(%0, %1); #define K_TextDrawShowForAll(Text%0) TextDrawShowForAll(%0); #define K_TextDrawHideForPlayer(%0, Text:%1) TextDrawHideForPlayer(%0, %1); #define K_TextDrawHideForAll(Text:%0) TextDrawShowForAll(%0);
Regards.
|
Listen you do it your way and I do it my way.
This is my first fucking include!