I need help, something wrong with commands
#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


Messages In This Thread
Nevermind - by samuel_hamza - 13.07.2010, 21:45
Re: I need help, something wrong with commands - by Zezombia - 13.07.2010, 22:04

Forum Jump:


Users browsing this thread: 1 Guest(s)