Solved give effect error

  • 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!

Status
Not open for further replies.

Dabriel

Member
Aug 13, 2018
45
5
0
code_language.skript:
function bankCode(p: Player, amount: Number):
    set {_UUID} to uuid of {_p}
    if {_amount} <= 0:
        message "&cnull 1" to {_p}
    else if {_amount} <=  {eco::balance::%{_UUID}%}:
        subtract {_amount} from {eco::balance::%{_UUID}%}
        give {_p} {_amount} Emerald named "&aGem"
        message "&anull 1" to {_p}
        stop

It's telling me that `{_amount}` it's not an item, tho it's parsed as a number..

code_language.skript:
give {_p} {_amount} Emerald named "&aGem"

here where the error is.
 
Thank you so much! LOVE!! After 40 minutes of trying, and it was just an "of"


<3333
Its always funny how one stupid little word can make the world of a difference. I myself have run into little problems like that from time to time!
 
Status
Not open for further replies.