function doStuff(%client){ commandToClient(%client, 'recieveMyGUIInfo', %client.wallet);}
function clientCmdRecieveMyGUIInfo(%wallet){ MyTextControl.setText("$" @ %wallet);}
Code: (Server.cs) [Select]function doStuff(%client){ commandToClient(%client, 'recieveMyGUIInfo', %client.wallet);}Code: (Client.cs) [Select]function clientCmdRecieveMyGUIInfo(%wallet){ MyTextControl.setText("$" @ %wallet);}
do I make any edits to them and also the one thay goes in client do I just copy and paste into the bottom of the client.cs?
It was just an example of what to do.Rename clientCmdRecieveMyGUIInfo to something less generic.Change MyTextControl to the name of your text control.And then just call commandToClient(%client, 'whateverYouDecideToNameYourCl ientCommand', %client.wallet); whenever you change the value of the person's wallet.
ok one last question is there a way to call a function when ever a variable is edited and every time it is edited?