11.08.2010, 16:50
You can't use preprocessors in plugins.
That means you can't do things like this:
You'll have to use a string type in the second parameter, and your "kcmd" command will not work, because you'll have to set it as public, and you'll have to define it many times, but you can't define a function many times, so you'll have to use macros, still.
About your question, see the Multi-threaded plugin by ****** or make a function in the plugin, and call this function in the PAWN's OnPlayerCommandText.
As Kye/Kalcor said, plugins weren't made to have game-related things, like commands, etc.
And I didn't understand what you're trying to do in some parts of this code...
That means you can't do things like this:
Code:
kcmd(param1, macro-processed-param)
About your question, see the Multi-threaded plugin by ****** or make a function in the plugin, and call this function in the PAWN's OnPlayerCommandText.
As Kye/Kalcor said, plugins weren't made to have game-related things, like commands, etc.
And I didn't understand what you're trying to do in some parts of this code...