I am making a shop and this is the problem
Every time Tux wants to buy something and doesn't bring coins, he buys it anyway.
I did this script but it doesn't work for me:
if("coins" >= 50){
Tux.add_coins(-50);
Tux.add_bonus("grow");
}
DevonST {l Wrote}:"coins" is a string of text because it is inside quotation marks. A good programming language would tell you that strings are not comparable with numbers. You should replace "coins" with Tux.get_coins()
DevonST {l Wrote}:Yeah, that should work
Users browsing this forum: No registered users and 1 guest