[Include] Static Dialogs - BigETI
#1

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:
  • 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[])
    Description: Used to create and/or overwrite a static dialog.
    Returns: True in case of success else False. (Boolean)


  • pawn Код:
    RemoveStaticDialog(dialogid)
    Description: Removes an existing static dialog.
    Returns: True in case of success else False. (Boolean)


  • pawn Код:
    ShowPlayerStaticDialog(playerid, dialogid)
    Description: Shows an existing static dialog to a specific player.
    Returns: Nothing!


  • pawn Код:
    IsStaticDialog(dialogid)
    Description: Checks if the static dialog exists.
    Returns: True if existing else False. (Boolean)


  • pawn Код:
    IsValidStaticDialog(dialogid)
    Description: Checks if the variable "dialogid" is valid.
    Returns: True if valid else False. (Boolean)

Credits:
  • Myself for creating this include.
  • Mikkel_Pedersen for testing this include.
  • SA:MP development team
Downloads:
Pastebin
Solidfiles

Regards: BigETI
Reply


Messages In This Thread
Static Dialogs - BigETI - by BigETI - 24.10.2011, 16:32
Re: Static Dialogs - BigETI - by Biesmen - 24.10.2011, 16:34
Re: Static Dialogs - BigETI - by IstuntmanI - 24.10.2011, 16:35
Re: Static Dialogs - BigETI - by BigETI - 24.10.2011, 16:44
Re: Static Dialogs - BigETI - by FireCat - 24.10.2011, 16:47
Re: Static Dialogs - BigETI - by |_ⒾⓇⓄN_ⒹⓄG_| - 24.10.2011, 16:48
Re: Static Dialogs - BigETI - by BigETI - 24.10.2011, 17:04
Re: Static Dialogs - BigETI - by KoczkaHUN - 24.10.2011, 18:15
Re: Static Dialogs - BigETI - by Ballu Miaa - 06.03.2012, 03:30

Forum Jump:


Users browsing this thread: 3 Guest(s)