help with strcmp
#1

now i want to know what the diffrent with this tow thing help me so i can do commands

what happen if was 4
if(strcmp(cmdtext,"/loc",true,4)


what happen if was 5
if(strcmp(cmdtext,"/loc",true,5)

and what this do help!
Reply
#2

5/4 is the length of the command.
for like an example:

"example" has 7 letters. so you would put 7 , I don't really care about the length as I just use this:
pawn Код:
if(strcmp(cmdtext,"/command",true) == 0)
Reply
#3

thanks bro
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)