Quote:
Originally Posted by BigETI
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:
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", "");
With this include:
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);
And if you like to show a modified message just use ShowPlayerDialog or for the public just change the dialog informations with SetStaticDialog
|
Thats nice! Now i think its usefull!