Blockland Forums > Modification Help
[MOAR PROBLEMS]My Gui Won't Read a Variable
brickybob:
http://dl.dropbox.com/u/38907569/RP_Stalker.zip
Pretty obvious what I'm trying to do just by looking at the file name.
Anyways, when I open the gui the spot where the rads value is always blank, not sure where I messed up so I submitted the whole thing.
Any ideas?
jes00:
%cl.rads Is blank client sided. You need the server to tell you how many %cl.rads you have.
You should have the server do commandToClient(GuiStatsUpdate, %client.rads); and then have something like this:
--- Code: ---function clientCmdGuiStatsUpdate(%rads)
{
radsstat.setValue(%rads);
}
--- End code ---
Nexus:
when does GuiStatsUpdate get called? I don't see anything calling it in this script.
brickybob:
I got it sorted out now, but thanks anyways.
xXBeibsFan119Xx:
Mind sharing?