Starting Plugin
#1

delete...
Reply
#2

You can't use preprocessors in plugins.

That means you can't do things like this:

Code:
kcmd(param1, macro-processed-param)
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...
Reply
#3

view on DNS plugin by Incognito, or NPC controllable, this plugins use callbacks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)