Why is this not working
%this.Wallet = 1500;
if(%this.Wallet > 0)
clientCmdCenterPrint ("%this.Wallet, 2");
also how do you bottom print?
Two reasons:
One, it doesn't appear to be in a function, so
%this is undefined.
Two, you're using clientCmdCenterPrint wrong.
function serverCmdGiveMeMoney(%client) {
%client.wallet = 1500;
if(%client.wallet > 0) // will always be true.. unnecessary here
%client.centerPrint(%this.wallet, 2);
}
Then your client can type
/giveMeMoney into chat and it will put 1500 in their wallet and center print how much money they have for 2 seconds.