12.09.2012, 09:16
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;
}

