SA-MP Forums Archive
[Include] Static Dialogs - BigETI - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Static Dialogs - BigETI (/showthread.php?tid=292645)



Static Dialogs - BigETI - BigETI - 24.10.2011

This time I want to show you a simply include, where you can store static dialogs and show them for player fast and easy.

What are static dialogs?
Static dialogs are dialogs which you can set and show for any player.

Limits:

Functions:
Credits: Downloads:
Pastebin
Solidfiles

Regards: BigETI


Re: Static Dialogs - BigETI - Biesmen - 24.10.2011

I feel stupid.. Static dialog? Mind showing any screens of what it is, for the other people who have no idea what it is?


Re: Static Dialogs - BigETI - IstuntmanI - 24.10.2011

Quote:

I feel stupid.. Static dialog? Mind showing any screens of what it is, for the other people who have no idea what it is?

"Predefined" dialog.

-----

Pretty nice, but you'll have to increase the string limit.

Why this and not the normal one ? The normal one have a very big string limit ( ~4096 char ), yours 128 chars, it's not hard to use Copy + Paste if you want to show the same dialog id in multiple things.


Re: Static Dialogs - BigETI - BigETI - 24.10.2011

Quote:
Originally Posted by costel_nistor96
Посмотреть сообщение
"Predefined" dialog.

-----

Pretty nice, but you'll have to increase the string limit.

Why this and not the normal one ? The normal one have a very big string limit ( ~4096 char ), yours 128 chars, it's not hard to use Copy + Paste if you want to show the same dialog id in multiple things.
The limit of the static dialogs are 128 while the information string can max get a string with 1024 cells.
Read the limits clearly above.


Re: Static Dialogs - BigETI - FireCat - 24.10.2011

I don't really see a big difference, only a few formats, other than that I don't see a big difference.


Re: Static Dialogs - BigETI - |_ⒾⓇⓄN_ⒹⓄG_| - 24.10.2011

almost nothing....
2/10


Re: Static Dialogs - BigETI - BigETI - 24.10.2011

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


Re: Static Dialogs - BigETI - KoczkaHUN - 24.10.2011

Idea is good, but dialog string limit is 4096 chars... :/ and that will be a memory waste.


Re: Static Dialogs - BigETI - Ballu Miaa - 06.03.2012

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!