Dialogs unique identifiers (no longer maintained)
#34

Quote:
Originally Posted by Joe Staff
Quote:
Originally Posted by [LRP
Sayaron ]
I preffer the old. Dont wanna waste any time learning another method when the old works fine
What are you, Amish?

I think the new method will work just fine, it's not a huge change, just instead of putting in permanent numbers, it's a variable, not much sacrifice.

The largest number is 0x7FFFFFFF, and if you ever reach that many dialogs created then you've got some crazy sh*t going on.
Yes but the variables value will increase by one for each dialog which is shown in/from any script. Tracking my vehicle one would be a bugger as it has fifteen dialogs so just off one viewing it could end up changing the value from 0 to 14, the next person views it it's now at 29, 44, and so on, just going back to the main menu and selecting the one you were already viewing will increase it a further two.

Honestly I could see it becomming a nightmare to try and debug it where as:

pawn Код:
printf( "%d", DIALOG_ID ); //this is a define #define DIALOG_ID 9999
Will always return the same id (9999).

@Zeex:

I don't want you to think I'm bashing your method, like I said it's a very nice idea but I'm just thinking outloud about ways it could end up making it harder to use in some situations.
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: 5 Guest(s)