Starting Plugin
#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


Messages In This Thread
Starting Plugin of CMD's - by SlashPT - 10.08.2010, 12:27
Re: Starting Plugin - by Toribio - 11.08.2010, 16:50
Re: Starting Plugin - by Aleks10 - 14.09.2010, 15:23

Forum Jump:


Users browsing this thread: 1 Guest(s)