What is command ZCMD and sctrmp
#1

can guys tell me what is ZCMD command and scrtmp
Reply
#2

I think this may help you https://sampforum.blast.hk/showthread.php?tid=280387
Reply
#3

ZCMD is a command processor which makes the command to be more faster. Strcmp in simply words is " String Compare " which checks if the string is the same typed. It's most used in commands but is more slow than ZCMD.
Reply
#4

the main difference between those:

strcmp is a function, called inside the OnPlayerCommandText(), so if a command got typed, the strcmp() will get called many times until the command got found (by comparing the string until one matches).

ZCMD is a command "processor", which uses a different method to call a command. it is not utilizing the OnPlayerCommandText() callback, so there is no need to compare countless strings until a command name matches - it uses direct callbacks, one for each command. comparing those 2 methods could be called absurd, coz the more commands you have the more speed increase (in relation) is noticeable.

without any doubt, ZCMD outperforms the OnPlayerCommandText()/strcmp by far.
Reply
#5

Quote:
Originally Posted by Babul
Посмотреть сообщение
strcmp is a function, called inside the OnPlayerCommandText().
You should check better. strcmp is not ONLY called inside OnPlayerCommantText but it's a function which compare a string.
Reply
#6

can you guys tell me how to get some thing in gamemode like Float X Y Z

P/s Sorry i Don't Good EngLish
Reply
#7

Quote:
Originally Posted by prohp1154
Посмотреть сообщение
can you guys tell me how to get some thing in gamemode like Float X Y Z

P/s Sorry i Don't Good EngLish
You can use the command /save in game to get the coordinates of the current player position and you can find them in the SA:MP directory.
Reply
#8

what file i can get ?

SAMP.img ?
Reply
#9

Quote:
Originally Posted by TheArcher
Посмотреть сообщение
You should check better. strcmp is not ONLY called inside OnPlayerCommantText but it's a function which compare a string.
There is no doubt he understands this. Assuming he was referring to the differences of zcmd and the use of strcmp, he states that it is called within the OnPlayerCommandText callback.

Quote:
Originally Posted by TheArcher
Strcmp in simply words is " String Compare " which checks if the string is the same typed. It's most used in commands but is more slow than ZCMD.
I'm unaware of your understanding of what a command actually is. If you reference strcmp to be used in most commands, this is generally an improper way of putting this.
Reply
#10

Quote:
Originally Posted by Sinc
Посмотреть сообщение
I'm unaware of your understanding of what a command actually is. If you reference strcmp to be used in most commands, this is generally an improper way of putting this.
I'm sure that if you go and see the gamemodes around this forum you'll find most of them using strcmp as commands.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)