ZCMD, sscanf2 in strcmp
#1

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?
Reply
#2

ZCMD commands can go anywhere but a callback. Place them outside callbacks for them to work.
Reply
#3

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
Reply
#4

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.
Reply
#5

Quote:
Originally Posted by JeanHooke
Посмотреть сообщение
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
Those two cannot work together because the one will give unknown command. Switch to ZCMD or y_commands and replace any strtok to sscanf.
Reply
#6

And i must convert all strrok in sscanf? :O Are 50k lines gamemode з.з
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)