Why is this giving me a tag mismatch, when they are forwarded ints?
#6

Quote:
Originally Posted by denNorske
Посмотреть сообщение
Thanks, I'll try that, didn't realise it had an impact.

Edit: Solution was to remove the enum name. Thanks Sreyas.
Any explanation to what happens to the enum? does it become

Код:
dialogids:pcpSettings
?
Yea, they are pretty much like tags internally.

You can still keep the name of the enum, but you will have to do:

Код:
if(dialogid == _:pcpSettings)
Which is just unneccessary in most cases.

But this can also be very useful if you want to make toggleable dialogs.

You'd just have to create an array with that enum and could do

Код:
DialogEnabled[pcpSettings] = 1;
and in OnDialogResponse

Код:
if(!DialogEnabled[dialogids:dialogid]) return 1;
or similar.

After all it would probably be easier to do it without the enum name, but it's possible. Dialogs are also a bad example here.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)