![]() |
Help!
NPC Code: im using GuiPopUpMenuCtrl(List_1) and I want it to set my chat to what my option was, but instead it is saying 'Started Event: 0' instead of 'Started Event: <event>' |
I don't quite understand why you deleted your thread from the GS2 forum, that was in the CORRECT forum for this question. But here is what I had posted there.
Your problem is because you're using getselectedtext(). That does not do what you want it to do. You want to be using gettext(). http://wiki.graal.us/GScript - Please use this, it can be your best friend when you need to look something up. I took this right from the wiki: Quote:
|
yes but im not looking for button...im using the popupctrl and gettext() doesnt work either :/
|
Kronan: He is correct in using getselectedtext() to retrieve the value.
The problem may also be that you are destroying the main window, before you are attempting to read the text from it. |
that doesnt work either...ive tried everything :/
|
This should work:
PHP Code:
|
| All times are GMT +2. The time now is 01:33 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.