| 11-26-2002, 04:33 AM | #1 |
I have a problem with my dialog. I am using a dialog array, and I define it using this. Code:
set udg_CD[GetPlayerId(GetTriggerPlayer())] = DialogCreate() It displays and everything yippie. Now I have a Trigger for detecting when a button is clicked it uses this event code. Code:
call TriggerRegisterDialogEventBJ( gg_trg_Dialog, udg_CD[0] ) Any help would be appreciated. Thanks DKSlayer |
| 11-26-2002, 01:47 PM | #2 |
TriggerRegisterDialogEventBJ must be called right after the construction of the dialog. Not in the trigger that shall be called when the dialog is clicked. 1. Create a dialog 2. Add Buttons 3. Register its event The trigger that is called does not need to know that it is called from a clicked dialog button event. If this doesn't help, post the whole trigger, please. |
| 11-27-2002, 11:30 PM | #3 |
Thanks I see that problem. I changing how I am going to do this plus then I will only have still One Trigger for the Commander. Thanks Again for your help. DKSlayer |
