I need help, something wrong with commands
#1

Nevermind
Reply
#2

pawn Код:
if(strcmp(cmdtext, "/b", true, 2) == 0)
    {
        new string[128], pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, sizeof(pname));

        if(IsLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_WHITE, "You are not logged in yet.");
        if(strlen(cmdtext[3]) == 0) return SendClientMessage(playerid, COLOR_GREY, "    USAGE: /b [text]");

        format(string, sizeof(string), "((%s: %s))", pname, cmdtext[3]);
        SendClientMessageToAll(COLOR_GREY, string);
        return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)