Blockland Forums > Modification Help

GUI Functions

Pages: << < (2/3) > >>

jes00:


--- Quote from: Port on February 21, 2012, 08:47:34 AM ---You can't call the command to cause an effect unless it's already defined for that control. What are you trying to do?

--- End quote ---
When it's selected I'm trying to call a function to tell if the player is in a txt file.

ALSO:
How would I get the players full name(client sided) from the player list? I tried getWord(NPL_List.getRowTextByID(NPL_List.getSelectedID()), 1); but that does not work if the player has more then one word in their name.

Port:

Create the function nameOfYourListControl::onSelect instead of calling it.

In regard to your second question, use getField instead of getWord.

jes00:


--- Quote from: Port on February 21, 2012, 09:30:30 AM ---Create the function nameOfYourListControl::onSelect instead of calling it.

In regard to your second question, use getField instead of getWord.

--- End quote ---
That's what I was doing, function NPL_List::onSelect(%a, %b, %rowText)

So like this? getField(NPL_List.getRowTextByID(NPL_List.getSelectedID()), 1);

Port:


--- Quote from: jes00 on February 21, 2012, 12:45:52 PM ---That's what I was doing, function NPL_List::onSelect(%a, %b, %rowText)

--- End quote ---

The following error would only occur if you explicitly/implicitly called the function or attempted to do parent::onSelect:


--- Quote from: jes00 on February 21, 2012, 07:17:54 AM ---Add-Ons/Client_Friends/Packages.cs (28): Unknown command onSelect.

--- End quote ---


jes00:


--- Quote from: Port on February 21, 2012, 01:03:28 PM ---The following error would only occur if you explicitly/implicitly called the function or attempted to do parent::onSelect:

--- End quote ---
Any way to parent it then?

Pages: << < (2/3) > >>

Go to full version