Birdy_Bot Posted September 11 Share Posted September 11 Basicly my code is on inventory click: if event-inventory = (metadata tag "StoreRanks" of player): cancel event if index of event-slot = 20: set {coins::%player's uuid%} to placeholder "coinsengine_balance_raw_coins" from player if {coins::%player's uuid%} = 300: broadcast "it worked" but my only issue is that the if coins 300 doesnt work, doesnt got any errors on sk reload but even if i got 300 coins it just doesnt do anything, anyone can u tell me solution? Link to comment Share on other sites More sharing options...
Pryzmm Posted September 12 Share Posted September 12 10 hours ago, Birdy_Bot said: Basicly my code is on inventory click: if event-inventory = (metadata tag "StoreRanks" of player): cancel event if index of event-slot = 20: set {coins::%player's uuid%} to placeholder "coinsengine_balance_raw_coins" from player if {coins::%player's uuid%} = 300: broadcast "it worked" but my only issue is that the if coins 300 doesnt work, doesnt got any errors on sk reload but even if i got 300 coins it just doesnt do anything, anyone can u tell me solution? couple things: - usually in store UIs, you should use the >= operator when checking the price of something, rather than just = - its possible the coins variable is parsed as text, use {coins::%player's uuid%} parsed as number in the if statement Owner of Lifestealed, Labs, Encore, UNOfficially and Observed OG [VIP] 12/26/20 - 10/27/2021 OG [PRO] 12/27/21 - 11/18/2022 OG [LEGEND] 11/18/2022 - 3/14/2023 [DEFAULT] 3/14/2023 - 5/8/2024 [MOD] 5/8/2024 - Present Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now