- 0
(SOLVED!) Custom script not properly working if put more than 1 in input
Asked by
rakuzas
-
Recently Browsing 0 members
- No registered users viewing this page.
Asked by
rakuzas
By using this site, you agree to our Terms of Use and Privacy Policy.
Hello,
Today Im just trying to make custom script.. When player input number, he will get the item..
It suppose to work like this :
1 Red Herb
1 Empty Bottle
Will get 1 Red Potion
So.. If they had 20 Red Herb and 19 Empty Bottle, they can input 1-19 for Red Potion.. But my current script only working when they input 1 only.. More than that, it will shows my Error message.. IDK which part I do wrong.. Please help me..
But if I removed the 2nd error line, it work perfectly.. But player able to get free item as server cannot delitem the required item and shows console error.. I tried use && and || but both shows same result.
Edited by rakuzasLink to comment
Share on other sites