Command will execute, but returns INVALID COMMAND!
#9

pawn Код:
if(strcmp(cmdtext, "/help", true) == 0)
{
    tmp = strtok(cmdtext, idx);
    if(strlen(tmp) == 0) return SendClientMessage(playerid, ERROR, "Use: /help [MESSAGE]");
    new string[144];
    new pName[MAX_PLAYER_NAME];
    GetPlayerName(pName,sizeof(pName),playerid);//<---------------add this
    format(string, sizeof(string), "[ ! ] %s [ID:%d] asks : %s", pName, playerid, cmdtext[6]);//put cmdtext[6], not tmp
    SendClientMessageToAdmins(string);
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)