17.01.2009, 15:32
Just made correct printc and printfc:
pawn Код:
native printc(colors, const string[]);
native printfc(colors, const format[], {Float,_}:...);
new g_console_colors;
#define printfc(%1,%2); \
{\
g_console_colors = GetConsoleTextColor();\
SetConsoleTextColor(%1);\
printf(%2);\
SetConsoleTextColor(g_console_colors);\
}
#define printc(%1,%2); \
{\
g_console_colors = GetConsoleTextColor();\
SetConsoleTextColor(%1);\
print(%2);\
SetConsoleTextColor(g_console_colors);\
}