Blockland Forums > Modification Help

GUI commandToServer

Pages: << < (2/2)

Red_Guy:

put some echo() commands in your script so you can see the values of things.  Use those to check to make sure the script is doing what you want it to.

pitfall:

I tried putting:

--- Code: ---echo("Sending bank data);
--- End code ---
into the clientCmd but it caused a syntax.

Triple Nickels:


--- Quote from: pitfall on June 29, 2010, 11:00:44 AM ---I tried putting:

--- Code: ---echo("Sending bank data);
--- End code ---
into the clientCmd but it caused a syntax.

--- End quote ---
You need to use an end quote

echo("Sending bank data");

Also; calling someone a dipstuff for trying to put more money into their bank is stupid. I wouldn't care because even if they did max their bank account they'd have negative cash and wouldn't be able to purchase anything until they took all that money back out of their bank, and they'd probably never do that again.

Try changing

--- Code: ---function deposit(%gui)
{
%amount = Deposit.getValue();

commandToServer('bankdeposit', %amount);
}
--- End code ---
to

--- Code: ---function deposit(%gui)
{
%amount = Deposit.getValue();

echo("Function called; Value is " @ %ammount); //If you didn't know, @ allows you to add onto a message.

commandToServer('bankdeposit', %amount);
}

--- End code ---


Pages: << < (2/2)

Go to full version