Need Help asap with this

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

FrBirdy

New Member
May 6, 2024
8
0
1
Basicly i got this skript ```
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 the issue is even if i got 300 coins it doesnt work no errors on sk reload pls anyone help
 
Basicly i got this skript ```
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 the issue is even if i got 300 coins it doesnt work no errors on sk reload pls anyone help
Make sure it refers to the right variable (Make it send out the coins value). Also, you're checking if a player has exactly 300 coins. So if you have a mechanic that gives more than 1 coin at a time, this code'll fail. In which case, use the <= (Greater than or equal to) condition to make sure all requirements are met for the price to work properly.
 
Make sure it refers to the right variable (Make it send out the coins value). Also, you're checking if a player has exactly 300 coins. So if you have a mechanic that gives more than 1 coin at a time, this code'll fail. In which case, use the <= (Greater than or equal to) condition to make sure all requirements are met for the price to work properly.
My biggest error is placeholder values are a text but skript is comaring it to not a text