SA-MP Forums Archive
[Plugin] Pawn.CMD - 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: [Plugin] Pawn.CMD (/showthread.php?tid=608474)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22


Re: Pawn.CMD - the fastest and most functional command processor - vannesenn - 16.10.2016

What happend with plugin?


Re: Pawn.CMD - the fastest and most functional command processor - OKStyle - 19.10.2016

Quote:
Originally Posted by SecretBoss
Посмотреть сообщение
If you are loading the plugin in a filterscript you must put

Код:
#define FILTERSCRIPT
Before including the Pawn.CMD
I don't use plugin in FS, only in Gamemode. FS using OnPlayerCommandText


Re: Pawn.CMD - the fastest and most functional command processor - Konstantinos - 19.10.2016

Quote:
Originally Posted by OKStyle
Посмотреть сообщение
I don't use plugin in FS, only in Gamemode. FS using OnPlayerCommandText
Any commands from scripts that are not using this plugin will not work.


Re: Pawn.CMD - the fastest and most functional command processor - OKStyle - 21.10.2016

Very bad. It's must be fixed.


Re: Pawn.CMD - the fastest and most functional command processor - HydraHumza - 22.10.2016

Question: How we can call a command in a middle of dialog like we can do in zcmd (cmd_test) Is there any way to call that in PAWN.CMD? if there is then how I can?


Re: Pawn.CMD - the fastest and most functional command processor - SkyLoKi - 22.10.2016

Quote:
Originally Posted by Humza
Посмотреть сообщение
Question: How we can call a command in a middle of dialog like we can do in zcmd (cmd_test) Is there any way to call that in PAWN.CMD? if there is then how I can?
callcmd::mycommand(args...)


Re: Pawn.CMD - the fastest and most functional command processor - Spmn - 22.10.2016

Quote:
Originally Posted by Humza
Посмотреть сообщение
Question: How we can call a command in a middle of dialog like we can do in zcmd (cmd_test) Is there any way to call that in PAWN.CMD? if there is then how I can?
PC_EmulateCommand


Re: Pawn.CMD - the fastest and most functional command processor - HydraHumza - 22.10.2016

Quote:
Originally Posted by Spmn
Посмотреть сообщение
PC_EmulateCommand
Please a example with full code how to use it??


Re: Pawn.CMD - the fastest and most functional command processor - Spmn - 22.10.2016

Quote:
Originally Posted by Humza
Посмотреть сообщение
Please a example with full code how to use it??
Function's header is pretty straight forward:

Код:
PC_EmulateCommand(playerid, "/say hello");



Re: Pawn.CMD - the fastest and most functional command processor - TORKQ - 24.10.2016

Quote:
Originally Posted by Humza
Посмотреть сообщение
Question: How we can call a command in a middle of dialog like we can do in zcmd (cmd_test) Is there any way to call that in PAWN.CMD? if there is then how I can?
Код HTML:
pc_cmd_test(playerid, params[]);
Will do the work


Re: Pawn.CMD - the fastest and most functional command processor - ball - 29.11.2016

Код:
[11:52:57]  Loading plugin: pawncmd.so
[11:52:57] Pawn.CMD plugin v3.1.2 by urShadow loaded
[11:52:57]   Loaded.

[...]

[11:53:02] [debug] Run time error 19: "File or function is not found"
[11:53:02] [debug]  PC_RegAlias
[11:53:02] [debug]  PC_CommandExists
[11:53:02] [debug]  PC_SetFlags
Plugin is loaded, but later it gives errors. This happens on Linux, on Windows everything works.


Re: Pawn.CMD - the fastest and most functional command processor - BiosMarcel - 24.12.2016

Awesome work man.
Especially the Flags and aliases are very useful.


Re: Pawn.CMD - the fastest and most functional command processor - Belengher - 12.01.2017

How to convert this to Pawn.Cmd?


Quote:

if(PlayerProfile[playerid]) cmd_profile(playerid, "0");




Re: Pawn.CMD - the fastest and most functional command processor - Duco - 12.01.2017

Quote:
Originally Posted by Belengher
Посмотреть сообщение
How to convert this to Pawn.Cmd?
You can either add a #define workaround or use the Replace feature. As for the #define:

Код:
#define cmd_%0(%1,%2) pc_cmd_%0(%1,%2)



Re: Pawn.CMD - the fastest and most functional command processor - JaydenJason - 27.01.2017

Quote:
Originally Posted by Belengher
Посмотреть сообщение
How to convert this to Pawn.Cmd?
Код:
if(PlayerProfile[playerid]) callcmd::profile(playerid, "0");



Re: Pawn.CMD - the fastest and most functional command processor - ISmokezU - 10.02.2017

Is this still the fastest command processor?


Re: Pawn.CMD - the fastest and most functional command processor - Crayder - 10.02.2017

Quote:
Originally Posted by ISmokezU
View Post
Is this still the fastest command processor?
Never was meant to really be the fastest, why does top-speed matter? The difference between this and other processors' speeds are so minor it's practically pointless to look for the fastest command processor.

The answer is yes.


Re: Pawn.CMD - the fastest and most functional command processor - TORKQ - 03.03.2017

I suggest you to add
Code:
isalias
parameter to
Code:
forward OnPlayerCommandReceived(playerid, cmd[], params[], flags, bool:isalias);
and function GetCmdForAlias(const alias[]) which would return the real cmd[] for given alias[];


Re: Pawn.CMD - the fastest and most functional command processor - SecDet - 15.03.2017

Quote:
Originally Posted by ball
Посмотреть сообщение
Код:
[11:52:57]  Loading plugin: pawncmd.so
[11:52:57] Pawn.CMD plugin v3.1.2 by urShadow loaded
[11:52:57]   Loaded.

[...]

[11:53:02] [debug] Run time error 19: "File or function is not found"
[11:53:02] [debug]  PC_RegAlias
[11:53:02] [debug]  PC_CommandExists
[11:53:02] [debug]  PC_SetFlags
Plugin is loaded, but later it gives errors. This happens on Linux, on Windows everything works.
What for the linux?


Re: Pawn.CMD - the fastest and most functional command processor - YouHack - 29.04.2017

Heads UP! I respect you.