How to make a /bugreport CMD [REP ++]
#4

Ok..
pawn Код:
// Command
CMD:bugreport(playerid) return ShowPlayerDialog( playerid, 1000, DIALOG_STYLE_INPUT, "Bug Report", "{FFFFFF}Type the bug you have found bellow:", "Send", "Cancel" );

// Dialog ( You add it at the OnDialogResponse Callback )
if( dialogid == 1000 )
{
    if(!response) return ( 0 );

    new
        File:_File = fopen( "BugReports.txt", io_append ),
        String[500]
    ;

    if( ( _File ) )
    {
        format( String, 500, "[BUG REPORT]: %s.\r\n", inputtext );
        fwrite( ( _File ), String );
        fclose( ( _File ) );
    }

    SendClientMessage( playerid, -1, "Your Bug has been sent successfully!" );
   
    return 1;
}
Reply


Messages In This Thread
How to make a /bugreport CMD [REP ++] - by NinjaChicken - 12.09.2012, 07:40
Re: How to make a /bugreport CMD [REP ++] - by Roach_ - 12.09.2012, 08:07
Re: How to make a /bugreport CMD [REP ++] - by NinjaChicken - 12.09.2012, 09:01
Re: How to make a /bugreport CMD [REP ++] - by Roach_ - 12.09.2012, 09:16
Re: How to make a /bugreport CMD [REP ++] - by Glint - 12.09.2012, 09:18

Forum Jump:


Users browsing this thread: 1 Guest(s)