How to check if the string length is properly written
#1

Hi, i wanted to know how am i supposed to check whether the player has typed a command properly, example: /up, /down. Using zcmd and sccanf for this.
Reply
#2

What do you mean "properly typed command" ? Player can type "/uppp" or "/u p" and it will not work. You want to display player message, when he typed the wrong command or something like that? I can't clearly understand, what you're trying to achieve.
Reply
#3

I already found out, sorry for the trouble lol.

pawn Код:
if(strcmp(text, "up", true) == 0)
This is what i wanted to do.
Reply
#4

Quote:
Originally Posted by GwENiko
Using zcmd and sccanf for this.
Quote:
Originally Posted by GwENiko
Посмотреть сообщение
pawn Код:
if(strcmp(text, "up", true) == 0)
This is what i wanted to do.
It doesn't look like sscanf and zcmd, but anyway.. I'm glad you've got what you wanted...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)