SA-MP Forums Archive
I need help, something wrong with commands - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I need help, something wrong with commands (/showthread.php?tid=159597)



Nevermind - samuel_hamza - 13.07.2010

Nevermind


Re: I need help, something wrong with commands - Zezombia - 13.07.2010

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;
    }