SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 11/05/2013, 12:14 PM   #1
Nostrum
Big Clucker
 
Join Date: Apr 2013
Posts: 59
Reputation: -2
Default zcmd, strcmp and dcmd.

Hello, could someone explain me how would these 3 command processors perform on 100 player base.
Lets say, its a normal day, they are roleplaying and such..
Nostrum is offline   Reply With Quote
Old 11/05/2013, 12:17 PM   #2
feartonyb
Huge Clucker
 
feartonyb's Avatar
 
Join Date: Feb 2012
Location: Knin, Croatia
Posts: 319
Reputation: 12
Default Re: zcmd, strcmp and dcmd.

I will use ZCMD because its using less resources of all 3 and it got nice functions.
feartonyb is offline   Reply With Quote
Old 11/05/2013, 12:25 PM   #3
Rayan_black
Huge Clucker
 
Rayan_black's Avatar
 
Join Date: Jan 2012
Posts: 328
Reputation: 46
Default Re : zcmd, strcmp and dcmd.

I started with ZCMD and I'll always use ZCMD.. I don't know about the others tho.
Rayan_black is offline   Reply With Quote
Old 11/05/2013, 12:29 PM   #4
[HiC]TheKiller
High-roller
 
Join Date: Mar 2008
Location: New Zealand
Posts: 2,629
Reputation: 410
Default Re: zcmd, strcmp and dcmd.

DCMD is pretty much just a easy way to use strcmp. strcmp is quite inefficient, especially when you want to check for params as well. ZCMD is by far the most efficient out of those three and the easiest as well. I would suggest ZCMD or something similar.
__________________
[HiC]TheKiller is offline   Reply With Quote
Old 11/05/2013, 12:36 PM   #5
feartonyb
Huge Clucker
 
feartonyb's Avatar
 
Join Date: Feb 2012
Location: Knin, Croatia
Posts: 319
Reputation: 12
Default Re: zcmd, strcmp and dcmd.

Just don't use YCMD caz it uses a lot of resources. Since you got 100+ players it will lag as hell
feartonyb is offline   Reply With Quote
Old 11/05/2013, 12:47 PM   #6
CreativityLacker
Big Clucker
 
CreativityLacker's Avatar
 
Join Date: Oct 2012
Location: The chocolate factory
Posts: 134
Reputation: 25
Default Re: zcmd, strcmp and dcmd.

Quote:
Originally Posted by feartonyb View Post
Just don't use YCMD caz it uses a lot of resources. Since you got 100+ players it will lag as hell
I dunno if it uses too much resources, but i'll tell you the con's and pro's of each -


STRCMP - pure bullshit, no advantages
ZCMD - fast, easy to use, GREAT if you're a simple scripter
YCMD - preferably, I'd use this with a GM which uses YSI library, as the extra features this provides work only with YSI library. But, it's sort of complicated, and yes, I guess it DOES use extra resources.
__________________
Scripter at Resurrection
91.121.153.202:7778 or resur.cod5samp.com:7778
CreativityLacker is offline   Reply With Quote
Old 11/05/2013, 01:07 PM   #7
LarzI
High-roller
 
LarzI's Avatar
 
Join Date: Apr 2007
Location: Norway
Posts: 2,628
Reputation: 136
Default Re: zcmd, strcmp and dcmd.

YCMD is proven to be faster than ZCMD after a certain amount of commands in your script. If you're making a big script, you should definitely use YCMD.
__________________


NEW: [FS] Simple Cellphones

if( strfind( title, "REP", true ) != -1 )
{________________________________________
Sigh();__________________________
}________________________________________


LarzI is offline   Reply With Quote
Old 11/05/2013, 01:10 PM   #8
Blackazur
High-roller
 
Join Date: Apr 2012
Posts: 1,407
Reputation: 12
Default AW: zcmd, strcmp and dcmd.

I use just ZCMD, i find it is the best command processor.
Blackazur is offline   Reply With Quote
Old 11/05/2013, 03:01 PM   #9
RvGamers
Big Clucker
 
RvGamers's Avatar
 
Join Date: May 2013
Location: Las Vegas, Nevada
Posts: 94
Reputation: 65
Default Re: zcmd, strcmp and dcmd.

If your script contains more than 100 commands, use y_commands. If it has less than 100 commands, use ZCMD. The other two really aren't in the discussion, although using DCMD is still ten times better than strcmp. This is speaking strictly performance wise. I still prefer y_commands anyways for its inline permission/help system. It may take a little longer to understand at first, but you'll thank me in the long run.

http://forum.sa-mp.com/showthread.php?t=169029
RvGamers 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
zcmd to strcmp or dcmd Marinko Scripting Help 3 29/11/2012 04:34 PM
Strcmp/dcmd to ZCMD iMaxRobot Server Support 5 20/03/2012 01:34 PM
[HELP] Zcmd, Dcmd or Strcmp Yaszine Help Archive 14 24/08/2011 07:16 AM
ZCMD - DCMD - STRCMP euRo Help Archive 3 23/06/2011 04:42 PM


All times are GMT. The time now is 07:27 AM.


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