24.10.2011, 16:32
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:
Pastebin
Solidfiles
Regards: BigETI
What are static dialogs?
Static dialogs are dialogs which you can set and show for any player.
Limits:
- Max. 128 static dialogs are createable. (Only from ID 0-127) (MAX_STATIC_DIALOGS)
- Caption of a dialog can store max. 32 cells. (MAX_STATIC_D_CAPTION)
- Information text of a static dialog can store 1024 cells. (MAX_STATIC_D_INFO)
- The button 1 and 2 can store each max. 16 cells. (MAX_STATIC_D_BUTTON)
Functions:
- pawn Код:SetStaticDialog(dialogid, style, caption[], info[], button1[], button2[])
Returns: True in case of success else False. (Boolean)
- pawn Код:RemoveStaticDialog(dialogid)
Returns: True in case of success else False. (Boolean)
- pawn Код:ShowPlayerStaticDialog(playerid, dialogid)
Returns: Nothing!
- pawn Код:IsStaticDialog(dialogid)
Returns: True if existing else False. (Boolean)
- pawn Код:IsValidStaticDialog(dialogid)
Returns: True if valid else False. (Boolean)
Credits:
- Myself for creating this include.
- Mikkel_Pedersen for testing this include.
- SA:MP development team
Pastebin
Solidfiles
Regards: BigETI