Hi everyone,
I'm at work on a script to automatically make superadvanced cocktails, but I'm stuck on this piece of code (attatched).
My method: I generally make a piece at a time, test it to see if it works, then add it into the big one. I'm having problems with this piece. I always get the statement: "Desired purchase quantity not reached (wanted x, got 0)" The thing is, x is always correct!
It seems to me that the buy function only works with actual numbers, not integer variables, although it does recognize the number...
Any thoughts?
I'm at work on a script to automatically make superadvanced cocktails, but I'm stuck on this piece of code (attatched).
My method: I generally make a piece at a time, test it to see if it works, then add it into the big one. I'm having problems with this piece. I always get the statement: "Desired purchase quantity not reached (wanted x, got 0)" The thing is, x is always correct!
It seems to me that the buy function only works with actual numbers, not integer variables, although it does recognize the number...
Any thoughts?