Will this work?
#1

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        // Do something here
        return 1;
    }
    return SendClientMessage(playerid,COLOR_WHITE,"This command does not exist, Please type /commands for a list");
}
Ingame would that say: This command does not exist, Please type /commands for a list
If someone types in a command that dont exist
Reply
#2

Why didnt you just try.
And i think it will work.
Reply
#3

Yes that will work.
For christ's sake, test before asking.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)