SA-MP Forums Archive
question. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: question. (/showthread.php?tid=180641)



question. - Gh0sT_ - 02.10.2010

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


Re: question. - LarzI - 02.10.2010

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)