Wrong?
#10

pawn Код:
dcmd_bug(playerid,params[])
{
    new string[128],bug,pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    if(sscanf(params,"s[128]",bug)) return SendClientMessage(playerid, COLOR_RED,"USAGE: /bug [what's the bug ?]");
    format(string,sizeof string,"[BUG REPORT] - %s has reported this bug: %s.",pName,bug);
    format(string,sizeof string,"[BUG REPORT] - You've reported this bug: %s ; succesfully.",bug);
    SendClientMessage(playerid,COLOR_GREEN,string);
    new File:Bug = fopen("/Bugs.txt", mode = io_readwrite)
    if(Bug)
    {
        fwrite(Bug, bug)
        fclose(Bug)
    }
    return 1;
}
dcmd_sug(playerid,params[])
{
    new string[128],pName[MAX_PLAYER_NAME],sug;
    GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    if(sscanf(params,"s[128]",sug)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /sug [suggestion for the server]");
    format(string,sizeof string,"[NEW SUGGESTION] - %s has suggested: %s.",pName,sug);
    new File:Suggestion = fopen("/Suggestions.txt", mode = io_readwrite)
    format(string,sizeof string,"[NEW SUGGESTION] - Your suggestion has been saved in a file; You have succesfully suggested: %s",sug);
    SendClientMessage(playerid,COLOR_GREEN,string);
    if(Suggestion)
    {
        fwrite(Suggestion, sug)
        fclose(Suggestion)
    }
    return 1;
}
Reply


Messages In This Thread
Wrong? - by DarkB0y - 24.06.2013, 13:32
Re: Wrong? - by [MG]Dimi - 24.06.2013, 14:02
Re: Wrong? - by DarkB0y - 24.06.2013, 14:16
Re: Wrong? - by adithegman - 24.06.2013, 14:21
Re: Wrong? - by DarkB0y - 24.06.2013, 14:23
Re: Wrong? - by adithegman - 24.06.2013, 14:29
Re: Wrong? - by adithegman - 24.06.2013, 14:47
Re: Wrong? - by DarkB0y - 24.06.2013, 14:52
Re: Wrong? - by adithegman - 24.06.2013, 14:53
Re: Wrong? - by DarkB0y - 24.06.2013, 14:58

Forum Jump:


Users browsing this thread: 1 Guest(s)