Posts: 5
Threads: 2
Joined: Feb 2012
Reputation:
0
Hi, my gamemode is in 'strcmp' and i must put the command in 'OnPlayerCommandText'.
I want put in my gamemode #include sscanf2 & zcmd but if i put the commands in STRCMP don't work.
I must put new call back?
If yes, what call back i must put?
Posts: 1,661
Threads: 47
Joined: May 2013
Reputation:
0
ZCMD commands can go anywhere but a callback. Place them outside callbacks for them to work.
Posts: 5
Threads: 2
Joined: Feb 2012
Reputation:
0
Yes, this i know, but if i put new callbacks and #include <zcmd> & <sscanf2> strcmp don't work, i want that STRCMP(onplayercommandtext) & zcmd work together
Posts: 843
Threads: 61
Joined: Feb 2013
Reputation:
0
you don't use strcmp for checking what did the player write, you just put CMD:tag near any command and you are good to go. I would suggest you to check sscanf and zcmd tutorials.
Posts: 5
Threads: 2
Joined: Feb 2012
Reputation:
0
And i must convert all strrok in sscanf? :O Are 50k lines gamemode з.з