One command does another command
#1

so im making a command have 2 commands

(like this)

Код:
if(strcmp(cmdtext, "/setlevel", true)==0 || strcmp(cmdtext, "/slvl", true)==0)
but if i do another command, it will do the one above instead (

this is the other command

Код:
if (strcmp("/stats", cmdtext, true, 10) == 0)
Reply
#2

geez I haven't heard of more stupid idea lol :P why you need 2 commands if the second one works like the first one
Reply
#3

/slvl does the same thing as /setlevel, but slvl is just a shorter way of writing it
Reply
#4

Код:
if(strcmp(cmdtext, "/setlevel", true, 9)==0 || strcmp(cmdtext, "/slvl", true, 5)==0)
Код:
if (strcmp("/stats", cmdtext, true, 6) == 0)
Try those.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)