#Variables not working in TAB

1 messages · Page 1 of 1 (latest)

ripe forge
#

Can somebody help?

visual heron
#

!percent

acoustic wagonBOT
# visual heron !percent

How to use Percent Signs

In Skript, the purpose of surrounding an expression in % signs is letting Skript know you want it to be parsed as an expression and insert its value into the string or variable you've put it in.

Correct Usage:

broadcast "%player%"
send {_variable::*} to player

Incorrect Usage:

give dirt to %player%
send "Hey there player" to %arg 1%
kill %{_variable}%
visual heron
#

You need to use percent signs when showing variables in a string. If you are using a tab plugin which you appear to be you may have to use some sort of placeholder api or to make your own implementation.

ripe forge
weary plaza
#

What is your code?

visual heron
#

I see that you want to use skript placeholders api, you need to setup an event for it using skript-placeholders.

on papi request for prefix "sk":
    if the identifier is "balance":
        set {_bal} to {balance::%player's uuid%}
        set the result to "$%{_bal}%"```
Then you can use placeholders such as this. I believe this will make %sk_balance% but I've not used it before.
left arrow
#

I’ve used it before it’s pretty simple