24.10.2011, 17:04
First of all I just made this include in a few minutes and second with this you can just show dialogs which you don't have to copy/paste all the time
Example:
Without this include:
With this include:
And if you like to show a modified message just use ShowPlayerDialog or for the public just change the dialog informations with SetStaticDialog
Example:
Without this include:
pawn Код:
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "My Dialog", "This is a dialog.\nAll the stuff have to be shown without any changes", "OK", "");
//..Somewhere in your script
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "My Dialog", "This is a dialog.\nAll the stuff have to be shown without any changes", "OK", "");
//..Somewhere in your script
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "My Dialog", "This is a dialog.\nAll the stuff have to be shown without any changes", "OK", "");
pawn Код:
//For example OnGameModeInit
SetStaticDialog(0, DIALOG_STYLE_MSGBOX, "My Dialog", "This is a dialog.\nAll the stuff have to be shown without any changes", "OK", "");
//Somewhere in your script
ShowPlayerStaticDialog(playerid, 0);
//Again somewhere in your script
ShowPlayerStaticDialog(playerid, 0);
//Again somewhere in your script
ShowPlayerStaticDialog(playerid, 0);