Quote:
|
Originally Posted by Don Correlli
pawn Код:
#if !defined SendRconCommandEx #define SendRconCommandEx(%0,%1) \ do \ { \ new \ string[64]; \ if(strlen(%0) > 0) \ { \ format(string, sizeof(string), %0, %1); \ SendRconCommand(string); \ } \ } \ while(FALSE) #endif
pawn Код:
stock SetServerPassword(password[]) { SendRconCommandEx("password %s", password); return true; }
pawn Код:
// example: SetServerPassword("pass1024");
|
Why creating a new variable (FALSE) if you can just type zero?