Dialogs unique identifiers (no longer maintained)
#52

Quote:
Originally Posted by Kye
why not explain to us all how an enum is better than a preprocessor define?
The enum hold all dialogid that people use in their scripts, this way it's very easy to add a dialog id without searching for what id number to assign to it or incrementing another define, it just need to be named somewhere in the enum.

In a include file "enum_dialogid":
pawn Код:
enum
{
    Admin_Panel_Example_Joe_Staff,
    Simple_AdminScript_GhostTTT,
    Click_Players_Name_Giacomand,
}
Then, for example Giacomand just replace his id in his script, by Click_Players_Name_Giacomand. He don't need to care about which id it will be assigned.

Someone may have to maintain this enum updated, and/or people who release scripts using dialogs, have to write in their topic what to add in the enum, for example Giacomand write: "add Click_Players_Name_Giacomand in the enum_dialogid.inc"...


And please Kye, make TogglePlayerMouse(playerid, bool:toggle), and GetPlayerMousePos(playerid, &x, &y), i remember i suggested these times ago..i really hoped to see them in 0.3, but no luck. They are useful, and i think, will be much more used by scripters than ShowPlayerDialog. It's basically what's missing to make amazing menus made of textdraws, as Seif suggested too.

I know, i'm not the one who have to script it, however i would like but i can't because sa-mp isn't open source.
Reply


Messages In This Thread
Dialogs unique identifiers (no longer maintained) - by Donny_k - 18.09.2009, 15:22
Re: Dialogs unique identifiers - by Joske_Vermeulen - 18.09.2009, 15:38
Re: Dialogs unique identifiers - by Sergei - 18.09.2009, 15:40
Re: Dialogs unique identifiers - by V1ceC1ty - 18.09.2009, 15:44
Re: Dialogs unique identifiers - by Donny_k - 18.09.2009, 15:45
Re: Dialogs unique identifiers - by V1ceC1ty - 18.09.2009, 15:52
Re: Dialogs unique identifiers - by Donny_k - 18.09.2009, 15:55
Re: Dialogs unique identifiers - by V1ceC1ty - 18.09.2009, 15:57
Re: Dialogs unique identifiers - by Kalcor - 18.09.2009, 16:30
Re: Dialogs unique identifiers - by yom - 18.09.2009, 16:40
Re: Dialogs unique identifiers - by Sergei - 18.09.2009, 16:44
Re: Dialogs unique identifiers - by Kyosaur - 18.09.2009, 16:45
Re: Dialogs unique identifiers - by V1ceC1ty - 18.09.2009, 16:49
Re: Dialogs unique identifiers - by Kalcor - 18.09.2009, 16:54
Re: Dialogs unique identifiers - by V1ceC1ty - 18.09.2009, 16:59
Re: Dialogs unique identifiers - by erorcun - 18.09.2009, 17:15
Re: Dialogs unique identifiers - by V1ceC1ty - 18.09.2009, 17:17
Re: Dialogs unique identifiers - by Kalcor - 18.09.2009, 17:19
Re: Dialogs unique identifiers - by Donny_k - 18.09.2009, 17:31
Re: Dialogs unique identifiers - by Zeex - 19.09.2009, 04:10
Re: Dialogs unique identifiers - by Donny_k - 19.09.2009, 11:01
Re: Dialogs unique identifiers - by Dark_Kostas - 19.09.2009, 13:35
Re: Dialogs unique identifiers - by Donny_k - 19.09.2009, 14:00
Re: Dialogs unique identifiers - by Joe Staff - 19.09.2009, 17:16
Re: Dialogs unique identifiers - by Kurence - 19.09.2009, 17:28
Re: Dialogs unique identifiers - by Sayaron - 19.09.2009, 17:38
Re: Dialogs unique identifiers - by Donny_k - 19.09.2009, 17:44
Re: Dialogs unique identifiers - by Sayaron - 19.09.2009, 19:01
Re: Dialogs unique identifiers - by Sayaron - 19.09.2009, 19:33
Re: Dialogs unique identifiers - by Donny_k - 19.09.2009, 20:20
Re: Dialogs unique identifiers - by Sayaron - 19.09.2009, 20:36
Re: Dialogs unique identifiers - by Joe Staff - 19.09.2009, 20:49
Re: Dialogs unique identifiers - by Sayaron - 19.09.2009, 21:00
Re: Dialogs unique identifiers - by Donny_k - 19.09.2009, 21:19
Re: Dialogs unique identifiers - by Joe Staff - 19.09.2009, 21:51
Re: Dialogs unique identifiers - by Joe Staff - 19.09.2009, 22:04
Re: Dialogs unique identifiers - by Donny_k - 19.09.2009, 22:25
Re: Dialogs unique identifiers - by V1ceC1ty - 20.09.2009, 00:43
Re: Dialogs unique identifiers - by Joe Staff - 20.09.2009, 01:52
Re: Dialogs unique identifiers - by yezizhu - 20.09.2009, 06:13
Re: Dialogs unique identifiers - by Joe Staff - 20.09.2009, 07:06
Re: Dialogs unique identifiers - by Zeex - 20.09.2009, 08:02
Re: Dialogs unique identifiers - by Norn - 20.09.2009, 23:16
Re: Dialogs unique identifiers - by Donny_k - 21.09.2009, 09:32
Re: Dialogs unique identifiers - by V1ceC1ty - 21.09.2009, 09:38
Re: Dialogs unique identifiers - by Donny_k - 21.09.2009, 10:01
Re: Dialogs unique identifiers - by ded - 21.09.2009, 16:50
Re: Dialogs unique identifiers - by Correlli - 21.09.2009, 17:50
Re: Dialogs unique identifiers - by saiberfun - 21.09.2009, 18:33
Re: Dialogs unique identifiers - by Daren_Jacobson - 22.09.2009, 01:49
Re: Dialogs unique identifiers - by Kalcor - 22.09.2009, 03:16
Re: Dialogs unique identifiers - by yom - 22.09.2009, 09:44
Re: Dialogs unique identifiers - by Benne - 22.09.2009, 13:15
Re: Dialogs unique identifiers - by Daren_Jacobson - 23.09.2009, 02:26
Re: Dialogs unique identifiers - by Donny_k - 23.09.2009, 09:47
Re: [FS] Dialog - Interior Menu - by saiberfun - 23.09.2009, 21:11
Re: [FS] Dialog - Interior Menu - by Donny_k - 23.09.2009, 22:34
Re: [FS] Dialog - Interior Menu - by saiberfun - 23.09.2009, 23:12
Re: [FS] Dialog - Interior Menu - by Donny_k - 23.09.2009, 23:54
Re: [FS] Dialog - Interior Menu - by V1ceC1ty - 24.09.2009, 00:17
Re: Dialogs unique identifiers - by Y_Less - 28.09.2009, 13:04
Re: Dialogs unique identifiers - by Donny_k - 03.10.2009, 01:41
Re: Dialogs unique identifiers - by Y_Less - 15.10.2009, 13:08
Re: Dialogs unique identifiers - by Donny_k - 15.10.2009, 14:56
Re: Dialogs unique identifiers - by allarw - 15.10.2009, 15:09
Re: Dialogs unique identifiers - by Donny_k - 15.10.2009, 15:36
Re: Dialogs unique identifiers - by HydraX - 27.11.2009, 15:20
Re: Dialogs unique identifiers (no longer maintained) - by RyDeR` - 27.11.2009, 22:40

Forum Jump:


Users browsing this thread: 7 Guest(s)