Hello everybody,
I have this code here :
PHP Code:
#define SAY_COMMAND_INV pmodel
new szSayCommandSlash[64],szSayCommand[64]
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
formatex(szSayCommand,charsmax(szSayCommand) - 1, "say %s", SAY_COMMAND_INV)
formatex(szSayCommandSlash,charsmax(szSayCommandSlash) - 1, "say /%s", SAY_COMMAND_INV)
register_clcmd(szSayCommand,"Test")
register_clcmd(szSayCommandSlash,"Test")
}
But I get this error :
Quote:
|
I:\AMXXdev\PStudio\temp682.sma(32) : error 017: undefined symbol "pmodel"
|
If I set
PHP Code:
#define SAY_COMMAND_INV pmodel
to
PHP Code:
#define SAY_COMMAND_INV "pmodel"
the command isn't working ingame.
Anyone knows how to solve that?
__________________