Awsome, it works now. For some reason it didnt for a while, then it just started to. This is great thanks for your help!
Syntax issues?
Posted by Madrox on Mon 14 Aug 2006 05:45 AM — 3 posts, 15,159 views.
Quote:
world.getvariable ("drink")
world.getvariable ("chp")
dim drink
dim chp
world.getvariable ("drink")
world.getvariable ("chp")
dim drink
dim chp
You need to put the variable into something, like this:
dim drink
drink = GetVariable ("drink")
The way you have written it, it gets the variable and just throws it away.
Also, for comparisons you might want to turn it into an integer, like this:
drink = CInt (GetVariable ("drink"))
Otherwise, it is treated as a string, and comparing to things like 200 won't work the way you expect.
Generally speaking you should reply by making a reply post, not by editing the first post; editing is usually for fixing typos, format errors, etc., not for adding to the discussion. When you edit it's hard to tell where the conversation started, where it is now, etc.