Admin Announce Command
#6

It Works! And Thanks;

Can you by an chance help me with my /newb command aswell? As it shows the same error?

((Im a newbie scripter just started out 2 days ago so I may ask a lot of questions ))

pawn Код:
CMD:newb(playerid, params[])
    {
        if(params[4])
        {
            new str[128];
            GetPlayerName(playerid, str, sizeof(str));
            format(str, sizeof(str), "[NEWBIE]%s {FFFFFF}%s", str, params[0]);
            SendClientMessageToAll(COLOR_BLUE, str);
            new string[128];
            new Lname[MAX_PLAYER_NAME];
            new year, month, day;
            new Hour, Minute;
            GetPlayerName(playerid,Lname,sizeof(Lname));
            getdate(year, month, day);
            gettime(Hour, Minute);
            format(string,sizeof(string),"[%d/%d/%d :: %02d:%02d] - %s has used the command (%s) \r\n", day, month, year, Hour, Minute, Lname, params);
            cmdlog = fopen("files/logs/chat.txt", io_append);
            fwrite(cmdlog,string);
            fclose(cmdlog);
        }
        else
        {
            SendClientMessage(playerid,COLOR_GREY, "USAGE: /newb [question]");
            return 1;
        }
        return 1;
    }
Any Ideas?
Reply


Messages In This Thread
Admin Announce Command - by StuartD - 31.12.2012, 22:21
Re : Admin Announce Command - by [HRD]Mar1 - 31.12.2012, 22:45
Re: Admin Announce Command - by StuartD - 31.12.2012, 22:57
Re: Admin Announce Command - by CrazyJin - 31.12.2012, 23:15
Re: Admin Announce Command - by Threshold - 31.12.2012, 23:21
Re: Admin Announce Command - by StuartD - 31.12.2012, 23:40
Re: Admin Announce Command - by CrazyJin - 31.12.2012, 23:43
Re: Admin Announce Command - by Threshold - 01.01.2013, 10:13

Forum Jump:


Users browsing this thread: 8 Guest(s)