'SERVER:UNKNOWN COMMAND' using ZCMD.
#1

Well, yes I want to do something like if the command entered is invalid, it shows 'SERVER: UNKNOWN COMMAND'.
Only problem is, I'm using ZCMD.
Thanks!

EDIT:
Is there an IsNumeric on PAWNO?
Reply
#2

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success) {
    if (!success) {
        // invalid command entered, do something here
    }
}
Reply
#3

Quote:
Originally Posted by Wyu
Посмотреть сообщение
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success) {
    if (!success) {
        // invalid command entered, do something here
    }
}
Niiiiiiiiiice! Thanks!
Reply
#4

BUMP.
EDITED main TOPIC.
Reply
#5

Yes, it can be found in utils.inc.

pawn Код:
IsNumeric(const string[])
{
    for (new i = 0, j = strlen(string); i < j; i++)
    {
        if (string[i] > '9' || string[i] < '0') return 0;
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)