Posts: 42
Threads: 4
Joined: Oct 2011
Reputation:
0
can guys tell me what is ZCMD command and scrtmp
Posts: 2,334
Threads: 62
Joined: Dec 2009
Reputation:
0
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.
Posts: 1,781
Threads: 13
Joined: Sep 2009
Reputation:
0
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.
Posts: 42
Threads: 4
Joined: Oct 2011
Reputation:
0
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
Posts: 42
Threads: 4
Joined: Oct 2011
Reputation:
0
what file i can get ?
SAMP.img ?