Author Topic: GUI Issue  (Read 3035 times)

So doing that with my variables and then putting the variable in a GUI. It should work?
You tell me

It didn't. Heres my code

Server:
Quote
function sendClientInfoToClient(%client,%curMoney)
{
    commandToClient(%client,'updateVariable',%player.client.curMoney);
}

Client:
Quote
function clientCmdupdateVariable(%curMoney)
{
    $currentMoney = %player.client.curMoney;
}

All you're doing is updating a variable, now you need to update the GUI element with that new variable's value.


It didn't. Heres my code

Server:
Client:
This is wrong.

You obviously don't know basic syntax or how to call functions, go research that then worry about client to server intractions

I'm new to scripting. Don't judge bro.

I'm new to scripting. Don't judge bro.
That's perfectly okay, I'm glad to see you take an interest in it, just go research calling functions and basic method using in TorqueScript, just search around the coding help forum.

Server and client interaction is not something you can learn from the start, you need to know things in order to be able to do it