How to make a /(n)ext command?
#1

How to make a /(n)ext command?
Actually im making a /next command, and i want they can use also /n instead of /next. How is that possible?
pawn Код:
if (strcmp("/next", cmdtext, true, 6) == 0)
    {
    print("blablabla")'
    return 1;
    }
Reply
#2

pawn Код:
if(strcmp(cmd, "/next", true) == 0 || strcmp(cmd, "/next", true) == 0 || strcmp(cmd, "/nxt", true) == 0)
Reply
#3

Quote:

if (strcmp("/next", cmdtext, true) == 0 || strcmp("/n", cmdtext, true) == 0)
{
// Do something here
return 1;
}

////
Reply
#4

pawn Код:
if(strcmp(cmd, "/next", true) == 0 || strcmp(cmd, "/n", true) == 0)
{
    print("blablabla")'
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)