Checking a define in gamemode?
#1

Hey guys.

I want to check for a define in a plugin.
How to do this:

Something like:

Gamemode:
Код:
#define BLAH
Plugin:
Код:
if("defined BLAH") { /* do something here */ }
Gz
Reply
#2

Wrong section, but..
pawn Код:
#define BLAH

#if defined BLAH
{
    // do something
}
#endif
also you can make it like this
pawn Код:
#define BLAH true

#if BLAH == true
{
    // do something
}
#else
{
    // do other thing
}
#endif
Reply
#3

Quote:
Originally Posted by admantis
Посмотреть сообщение
Wrong section, but..
pawn Код:
#define BLAH

#if defined BLAH
{
    // do something
}
#endif
also you can make it like this
pawn Код:
#define BLAH true

#if BLAH == true
{
    // do something
}
#else
{
    // do other thing
}
#endif
Not in a plugin...
In a plugins include (if it were to have one), yes.
Your code won't work, either.
Reply
#4

A plugin for that intentions is not needed at all.
Reply
#5

I mean to check in plugin for a define in the plugin include.
Reply
#6

no need of { } btw
Reply
#7

Sorry I thought you were talking about searching certain define in the script
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)