Page 1 of 1

Help with SendDialogGump()

Posted: Sun Aug 17, 2008 7:23 am
by Gnafu
In the docs: "the return value is a dictionary."
but when I try to use .keys() or .size() they don't work ("Method id '56' (keys) not found", "Method id '48' (size) not found")
So I used TypeOf(retkey), retkey is the return value of SendDialogGump, and i got a Unknown.
If I print the retkey with SendSysMessage(who, "result -> "+retkey); I get a <inthash>.

How can I manage it?

Thank you in advance

Re: Help with SendDialogGump()

Posted: Sun Aug 17, 2008 10:55 am
by *Edwards
I would suggest you to look to the exemples given into the gump package of distro097. That's how I've learn the methods to use gumps. Atleast, it will be faster for you to understand than waiting for an answer here... I mean, you'll only get 5% of all you can do. Visit the distro, awesome work.

Re: Help with SendDialogGump()

Posted: Sun Aug 17, 2008 3:42 pm
by Gnafu
Thank you, I solved buy using .keys instead of .keys() ;)