Author Topic: <var:cl:m> Help  (Read 597 times)

So I am currently playing on my friends server and we need to check our Var money balance I know how to make the code and everything but when I do it it does this...

In event screen:
You have <var:cl:m> dollars.

After click:
You have dollars.

How to fix it?

Make sure <var:cl:m> is actually set to something.

This may help

Code: [Select]
OnActivate>Client>IfVariable> >=[0]
OnVariableFalse>CLient>Centermessage>[You have no money!]
OnVariableTrue>Client>Centermessage>[You have <var:client:m> dollars!]
Help at all?

if you are modifying the variable through the following event example, you're doing it wrong
onActivate>Client>VCE_ModVariable [<var:cl:m>] [9001]
if you are modifying the variable through the following event example, you're doing it right
onActivate>Client>VCE_ModVariable [m] [9001]

the first example modifies the client variable "<var:cl:m>" and the second example modifies the client variable "m" which is what you want.