Bug command help
#9

pawn Код:
else
{
if (strcmp("/buygod", cmdtext, true, 10) == 0)
{  
        if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
        if(strlen(params) > 128) return SendClientMessage(playerid, COLOR_GREY, "Maximum characters limit is 128.");
           {
                     new File: file = fopen("bugs.cfg", io_append), string[128];
                     format(string, sizeof(string), "%s\r\n", params);
                     fwrite(file, string);
                     fclose(file);
           }
    }
}
Try this
Reply


Messages In This Thread
Bug command help - by MichaelWharton101 - 18.04.2013, 21:56
Re: Bug command help - by HurtLocker - 18.04.2013, 22:20
Re: Bug command help - by MichaelWharton101 - 18.04.2013, 22:22
Re: Bug command help - by MichaelWharton101 - 18.04.2013, 22:31
Re: Bug command help - by MichaelWharton101 - 18.04.2013, 23:04
Re: Bug command help - by HurtLocker - 18.04.2013, 23:06
Re: Bug command help - by MichaelWharton101 - 18.04.2013, 23:20
Re: Bug command help - by Azazelo - 18.04.2013, 23:24
Re: Bug command help - by Giroud12 - 18.04.2013, 23:27
Re: Bug command help - by MichaelWharton101 - 18.04.2013, 23:31

Forum Jump:


Users browsing this thread: 1 Guest(s)