#IntValue in script pmo

1 messages · Page 1 of 1 (latest)

lavish mesa
#

Okay so, every time I click add to cart on the item, it is saying that the cart amount value is 1, even though every time I'm adding a different item, it's saying that it's STILL DAMN ONE. cart amount is the amount of different items in the cart. ex: snickers, potato chips = cart amount 2 but if there's 2 snickers, 2 chips, cart amount still = 2. if you need me to explain more, lmk

#

IntValue in script pmo

#

@glass jetty What's upppp 😭

glass jetty
eternal nymph
#

you're doing .Value

glass jetty
#

when using object and their values unless you simply want to compare number don't set a variable to the object value

eternal nymph
#

which gets the value before anything was ever changed

#

get the object then in ur script do
object.Value

#

when you click or something

lavish mesa
#

Hmm alrighty

#

OHHH

#

I think I get it

#

give me two seconds

eternal nymph
#

and you're not setting the value

#

in ur script at all

lavish mesa
#

yeah, I don't want to

#

I want to add 1 to the value

#

so we start at 0, then you add an item it goes to 1, you add another it goes to 2

eternal nymph
#

yeah you do
object.Value += 1

lavish mesa
#

that's what I'm trying right now

#

OH MY GOD

#

I HAVE BEEN SITTING HERE FOR LITERALLY LIKE

#

AND HOUR OR TWO

#

Thank you so so so much

#

this was very helpful