question.
#1

Hello all, im have a question with a RCON commands. Im tryied do that: If 'scripter' didnt defined true 'SRR' in top of script, in GameModeInit server will crash... But it doesnt work.

#define SRR false
and ongamemodeinit:
#if !defined SRR
{
SendRconCommand("exit");
}
#endif
tryied to define SRR to true, but nothing
Reply
#2

Aslong as you define, the '#if !defined' check will fail, unless you #undef before it.
And I don't think 'false' is correct in macros.. Try exchanging by (0)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)