29.12.2017, 14:32
FRMT:
__________________________________________________ ___
now instead of doing this:
you can do this:
its not much but you will be able to code format lil bit faster
PHP Code:
#define frmt(%3,%4,%1,%2) new %3[%4]; \
format(%3, sizeof(%3), %1, %2)
now instead of doing this:
PHP Code:
new d[20];
format(d, 20, "Server max slot: %d", GetMaxPlayers());
printf(d);
PHP Code:
frmt(d, 20, "Server max slot: %d", GetMaxPlayers());
printf(d);