SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 18/05/2017, 11:27 AM   #381
Dice_
Huge Clucker
 
Dice_'s Avatar
 
Join Date: Sep 2015
Location: Indonesia
Posts: 390
Reputation: 43
Default Re: Pawn.CMD - the fastest and most functional command processor

Quote:
Originally Posted by Chris53340 View Post
Thank you.

I would like to know how PAWN.CMD used for irregular use.

Here is my code with strcmp

Resume

PHP Code:
public OnPlayerCommandText(playeridcmdtext[])
{
    new 
HelpCMD[20];
    
format(HelpCMDsizeof(HelpCMD), "/aide");
    if(
strcmp(HelpCMDcmdtexttrue10) == 0
    {
        
// My Code
        
return 1;
    }
    return 
1;

With PWN.CMD

PHP Code:
cmd:HelpCMD(playeridparam[]) return 1
No put my irregular variable.

Thanks.. (Bad English)
What are you trying to do?please explain it again..
__________________
203.114.74.56:7777

Dice_ is offline   Reply With Quote
Old 18/05/2017, 11:34 AM   #382
Yuri8
Little Clucker
 
Join Date: Nov 2016
Posts: 45
Reputation: 0
Default Re: Pawn.CMD - the fastest and most functional command processor

How can I create a command? I know only ZCMD style.
Yuri8 is offline   Reply With Quote
Old 18/05/2017, 11:47 AM   #383
Dayrion
High-roller
 
Dayrion's Avatar
 
Join Date: Jan 2016
Posts: 1,243
Reputation: 99
Default Re: Pawn.CMD - the fastest and most functional command processor

Quote:
Originally Posted by Chris53340 View Post
Bump pls
PHP Code:
CMD:aide(playeridparams[])
{
    
// ton code... / your code ...
    
return 1;

Also, "params[]" can be removed since you don't need any parameters. I mean, if you have only "/aide" and nothing more, remove "params[]".
Tu peux retirer "params[]" si tu n'as pas besoin de mettre de paramètre. Si ta commande est juste "/aide" sans paramètre (ex: "/aide 1" où 1 est un paramètre de la commande), tu peux retirer "params[]".
Dayrion is offline   Reply With Quote
Old 19/05/2017, 11:46 PM   #384
YouHack
Huge Clucker
 
YouHack's Avatar
 
Join Date: Jan 2017
Location: Lost in Morocco
Posts: 265
Reputation: 21
Default Re: Pawn.CMD - the fastest and most functional command processor

I've replaced ZCMD with this one in linux, and it works like a charm, fast AF.
but in Windows...
Code:
[00:26:55]----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[00:26:50] 
[00:26:50] Server Plugins
[00:26:50] --------------
[00:26:50]  Loading plugin: crashdetect
[00:26:50]   CrashDetect v4.13.1 is OK.
[00:26:50]   Loaded.
[00:26:50]  Loading plugin: mysql_static
[00:26:50]   Failed.
[00:26:50]  Loading plugin: mysql
[00:26:50]  >> plugin.mysql: R39-3 successfully loaded.
[00:26:50]   Loaded.
[00:26:50]  Loading plugin: sscanf
[00:26:50] 

[00:26:50]  ===============================

[00:26:50]       sscanf plugin loaded.     

[00:26:50]          Version:  2.8.1        

[00:26:50]    (c) 2012 Alex "Y_Less" Cole  

[00:26:50]  ===============================

[00:26:50]   Loaded.
[00:26:50]  Loading plugin: streamer
[00:26:50]   Failed.
[00:26:50]  Loading plugin: pawncmd
[00:26:50] Pawn.CMD plugin v3.1.2 by urShadow loaded
[00:26:50]   Loaded.
[00:26:50]  Loading plugin: nativechecker
[00:26:50]   Loaded.
[00:26:50]  Loaded 5 plugins.

[00:26:50] 
[00:26:50] Filterscripts
[00:26:50] ---------------
[00:26:50]   Loaded 0 filterscripts.

[00:26:55] [debug] Server crashed due to an unknown error
[00:26:56] [debug] Native backtrace:
[00:26:56] [debug] #0 012922f7 in ?? () from plugins\pawncmd.dll
[00:26:56] [debug] #1 012945fb in ?? () from plugins\pawncmd.dll
[00:26:56] [debug] #2 00469ab5 in ?? () from samp-server.exe
[00:26:56] [debug] #3 65646f6d in ?? () from samp-server.exe
( Off topic, don't ask for time in debug, it's real. I try to stay awake these days to focus on coding lol )
YouHack is offline   Reply With Quote
Old 21/05/2017, 10:25 AM   #385
Chris53340
High-roller
 
Chris53340's Avatar
 
Join Date: Jul 2011
Posts: 1,766
Reputation: 54
Default Re: Pawn.CMD - the fastest and most functional command processor

Quote:
Originally Posted by Dice_ View Post
What are you trying to do?please explain it again..
Quote:
Originally Posted by Yuri8 View Post
How can I create a command? I know only ZCMD style.
Quote:
Originally Posted by Dayrion View Post
PHP Code:
CMD:aide(playeridparams[])
{
    
// ton code... / your code ...
    
return 1;

Also, "params[]" can be removed since you don't need any parameters. I mean, if you have only "/aide" and nothing more, remove "params[]".
Tu peux retirer "params[]" si tu n'as pas besoin de mettre de paramètre. Si ta commande est juste "/aide" sans paramètre (ex: "/aide 1" où 1 est un paramètre de la commande), tu peux retirer "params[]".
My commands are translated into MySQL, for example /aide (FR) /help (EN) /ayuda (ES) ...

The commands are loaded with the player's language. My order is not in the script but in the database. My question is, how called the command built from the database.



Thanks to reply. (google traduction)
__________________
Ma présentation / Mon Showroom

[11 FilterScripts]
[4 Maps]
[6 Includes]
[9 Tutoriels]
[1 Tool/Web/Other]
Chris53340 is offline   Reply With Quote
Old 21/05/2017, 12:34 PM   #386
Nero_3D
High-roller
 
Nero_3D's Avatar
 
Join Date: Jun 2007
Location: Germany
Posts: 3,746
Reputation: 613
Default Re: Pawn.CMD - the fastest and most functional command processor

Quote:
Originally Posted by Chris53340 View Post
My commands are translated into MySQL, for example /aide (FR) /help (EN) /ayuda (ES) ...

The commands are loaded with the player's language. My order is not in the script but in the database. My question is, how called the command built from the database.
There is no command processor which supports personal commands like you want (not that I know of)

The only thing you could do is create your "help" command and use "PC_RegAlias(const cmd[], const alias[], ...);" in OnGameModeInit to register all alias for the command
But than everyone could use either /help, /aide or /ayuda for the same command
__________________
Nero_3D is offline   Reply With Quote
Old 21/05/2017, 04:29 PM   #387
Crayder
High-roller
 
Crayder's Avatar
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,870
Reputation: 560
Default Re: Pawn.CMD - the fastest and most functional command processor

Quote:
Originally Posted by Nero_3D View Post
There is no command processor which supports personal commands like you want (not that I know of)
YCMD does.
__________________
Those who deserve reputation, do not need to beg for it.
Also, don't expect the help you need when offering reputation, you'll just be attracting Rep Hunters.
Join SA-MP Discord!
Crayder is offline   Reply With Quote
Old 26/05/2017, 02:09 AM   #388
CheatForSpeed
Little Clucker
 
Join Date: Jul 2012
Posts: 4
Reputation: 0
Default Re: Pawn.CMD - the fastest and most functional command processor

Wow, I'm stunned by this!
Did you think about also porting this to Dialogs?
CheatForSpeed is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] [I-ZCMD]Improved ZCMD - Fastest Command Processor Yashas Includes 98 30/04/2017 04:49 PM
[Tutorial] PAWN Pre-Processor (Updated 22/04/13) Misiur Tutorials 6 10/07/2016 02:33 PM
[Include] y_commands - Most flexible and fastest command processor, now on the YSI wiki corne Includes 19 03/12/2015 01:41 AM
[Tutorial] PAWN Pre-Processor - Pre-processor alternatives - Part 5/7 Misiur Tutorials 0 14/04/2015 09:13 PM


All times are GMT. The time now is 12:08 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.