Command will execute, but returns INVALID COMMAND!
#10

pawn Код:
if(!strcmp(cmdtext, "/help", true, 5))
{
    if(!cmdtext[5]) return SendClientMessage(playerid, ERROR, "Use: /help [MESSAGE]");
    new strText[144], playerName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
    format(strText, sizeof(strText), "[ ! ] %s [ID:%d] asks : %s", playerName, playerid, cmdtext[5]);
    SendClientMessageToAdmins(strText);
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)