[Plugin] Pawn.CMD

What happend with plugin?
Reply

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
Reply

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.
Reply

Very bad. It's must be fixed.
Reply

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?
Reply

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...)
Reply

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
Reply

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

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");
Reply

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
Reply

Код:
[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.
Reply

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

How to convert this to Pawn.Cmd?


Quote:

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

Reply

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)
Reply

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

Is this still the fastest command processor?
Reply

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.
Reply

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[];
Reply

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?
Reply

Heads UP! I respect you.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)