#Functions (Introduce players in)

1 messages · Page 1 of 1 (latest)

jolly dawn
#

Hi i try to put player data in function but i cant so i'm here to ask if we can find another way to do that

function BeeShop(p: player):
    set {_multi} to 1# + ({bees::%uuid of player%}/10)
    set {_price} to 100 * {_multi}
    set {_gui} to chest inventory with 3 rows named "&e&lʙᴇᴇ &7ᴍᴇʀᴄʜᴀɴᴛ"

    set slot (integers between 0 and 26) of {_gui} to gray stained glass pane named " "
    set slot 11 of {_gui} to player head named "you have x bees"
    set slot 13 of {_gui} to bee spawn egg named "&7ʙᴜʏ ᴀ &e&lʙᴇᴇ" with lore "&7ᴄᴏꜱᴛ: %{_price}%"
    set slot 15 of {_gui} to nether star named "More bee more priced" with lore "test"
    open {_gui} to {_p}

After the # it's the code i cant put

signal wraith
#

There is no player in a function

#

You have to use {_p} like you did at the bottom time

flat glade
#

uuid of (input the parameter)

jolly dawn
#

Oh yes thank you