[Vote]STRCMP or ZCMD? -
Guitar - 19.02.2012
Hello, I am going to script commands in my gReg system .. Which command processors do you want to see in it?
ZCMD or STRCMP?
((
https://sampforum.blast.hk/showthread.php?tid=319526 ))
Re: [Vote]STRCMP or ZCMD? -
Twisted_Insane - 19.02.2012
God, it's a shame that you even ask us still something about STRCMP...Please dude, ZCMD is the best processor, believe me, just please, forget and erase the second one outta your mind!
Re: [Vote]STRCMP or ZCMD? -
milanosie - 19.02.2012
strcmp>>dcmd>>YCMD/ZCMD
Re: [Vote]STRCMP or ZCMD? -
Guitar - 19.02.2012
I know, but I think that some people will be annoyed to see includes in a registration system :S, anyway I'll be using ZCMD.
Re: [Vote]STRCMP or ZCMD? -
emokidx - 19.02.2012
Quote:
Originally Posted by milanosie
strcmp>>dcmd>>YCMD/ZCMD
|
this explains it.
use zcmd or ycmd
Re: [Vote]STRCMP or ZCMD? -
milanosie - 19.02.2012
Quote:
Originally Posted by Guitar
I know, but I think that some people will be annoyed to see includes in a registration system :S, anyway I'll be using ZCMD.
|
ZCMD is the most used processor, almsot everybody has it.
The few that don't (or are using YCMD) Probably don't mind downloading it since its just better then strcmp and dcmd.
For the choise between ZCMD and YCMD It depends on your script size
YCMD is faster for very big scripts
Re: [Vote]STRCMP or ZCMD? -
Not Applicable - 19.02.2012
STRCMP is not a command processor. It stands for String Compare for detecting if the string are same or not.
Re: [Vote]STRCMP or ZCMD? -
aRoach - 19.02.2012
Quote:
Originally Posted by Twisted_Insane
God, it's a shame that you even ask us still something about STRCMP...Please dude, ZCMD is the best processor, believe me, just please, forget and erase the second one outta your mind!
|
Nope, Y_CMD is the Fastest !
Quote:
Originally Posted by milanosie
strcmp>>dcmd>>YCMD/ZCMD
|
Maybe:
Because STRCMP is only for Strings..
BTW, I recommand you ZCMD or YCMD, you choose...
Re: [Vote]STRCMP or ZCMD? -
Madd Kat - 19.02.2012
Quote:
Originally Posted by milanosie
ZCMD is the most used processor, almsot everybody has it.
The few that don't (or are using YCMD) Probably don't mind downloading it since its just better then strcmp and dcmd.
For the choise between ZCMD and YCMD It depends on your script size
YCMD is faster for very big scripts
|
Yeah this is what i use
YCMD
once you get 100 or so cmds youll need it.
This forum requires that you wait 120 seconds between posts. Please try again in 15 seconds.
Re: [Vote]STRCMP or ZCMD? -
Calgon - 19.02.2012
You should learn why you should use different methods - as opposed to being told simply not to use a method.
strcmp is a basic function which compares two strings; it's used in older scripts to retrieve parameters from commands and is usually combined with strtok, another extremely inefficient splitting routine. The main problem is that it's slower in comparison to the methods zcmd and y_commands use.
dcmd is not all that great either - looking at the macro it even uses strcmp directly in the macro.
y_commands and
zcmd both use a method of converting your commands in to functions and every time someone sends a command through the server it executes the function - it is typically much faster to use, y_commands is apparently faster but I've never looked in to it as I've only used zcmd since its release.
Quote:
Originally Posted by milanosie
strcmp>>dcmd>>YCMD/ZCMD
|
Quote:
Originally Posted by aRoach
Nope, Y_CMD is the Fastest !
Maybe:
Because STRCMP is only for Strings..
BTW, I recommand you ZCMD or YCMD, you choose...
|
Both of you should know how to use the 'more than' and 'less than' operators if you script in this language, it is basic maths and is quite frankly one of the most important things you should know in this language. You have your statement in the wrong order.