Blockland Forums > Modification Help

Points Value [Solved by Port]

Pages: (1/3) > >>

jes00:

How do I get the value of points from the player list GUI for a specified name?

Danny Boy:

Nevermind, for some reason that only worked for the first player on the player list. :/

Port:

getField( NPL_List.getRowText( index ), 2 )

jes00:


--- Quote from: Port on January 28, 2012, 10:41:16 AM ---getField( NPL_List.getRowText( index ), 2 )

--- End quote ---
This only gives me the value of the first player's score.

--- Code: ---%points = getField(NPL_List.getRowText(%name), 2);

--- End code ---


Nitramtj:


--- Quote from: jes00 on January 29, 2012, 09:50:30 PM ---This only gives me the value of the first player's score.

--- Code: ---%points = getField(NPL_List.getRowText(%name), 2);

--- End code ---

--- End quote ---
"index" is a number from 0 - (playerCount - 1), not a name.

Pages: (1/3) > >>

Go to full version