Starting Plugin - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Plugin Development (
https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: Starting Plugin (
/showthread.php?tid=166896)
Starting Plugin of CMD's -
SlashPT - 10.08.2010
delete...
Re: Starting Plugin -
Toribio - 11.08.2010
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...
Re: Starting Plugin -
Aleks10 - 14.09.2010
view on DNS plugin by Incognito, or NPC controllable, this plugins use callbacks