Command will execute, but returns INVALID COMMAND!
#5

Quote:
Originally Posted by RuiGy
Посмотреть сообщение
pawn Код:
if(strcmp(cmd, "/help", true) == 0)
{
    tmp = strtok(cmdtext, idx);
    if(strlen(tmp) == 0) return SendClientMessage(playerid, ERROR, "Use: /help [MESSAGE]");
    new string[144];// You don't need 250 cells, because max length displayable is 144
    format(string, sizeof(string), "[ ! ] %s [ID:%d] asks : %s", name, playerid, tmp);/* < strlen returns the length of the string*/
    SendClientMessageToAdmins(string);
    return 1;
}
I am pretty sure its 128 cells not 144...
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)