function error says "unexpected entry"

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

    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.

Madrooski

Member
Jan 11, 2021
4
0
1
28
command /shop:
function BlocksPq(p: player):
open virtual chest inventory with size 5 named "Blocks" to {_p}
format gui slot 10 of {_p} with stone named "Stone $500"
format gui slot 11 of {_p} with stone bricks named "Stone bricks $500"
format gui slot 12 of {_p} with chiseled stone bricks named "Chiseled Stone bricks $500"
format gui slot 44 of {_p} with spectral arrow named "§2Next Page" to run:
BlocksP2({_p})

function BlocksPw(p: player):
open virtual chest inventory with size 5 named "Blocks pg:2" to {_p}
format gui slot 36 of {_p} with arrow named "§2Previous Page" to run:
BlocksP1({_p})
trigger:
open virtual chest inventory with size 3 named "Shop" to player
format gui slot 11 of player with stone named "blocks" to run:
BlocksP1(player)
[doublepost=1610339051,1610339001][/doublepost]I'm trying to make a shop with a next / prev page.
 

Attachments

  • Screen Shot 2021-01-10 at 9.18.12 PM.png
    Screen Shot 2021-01-10 at 9.18.12 PM.png
    80.5 KB · Views: 112
Please link an image of your error.

When running function from a GUI slot, I'm almost certain you have to use "to run function (name)"
 
Please link an image of your error.

When running function from a GUI slot, I'm almost certain you have to use "to run function (name)"

Screen Shot 2021-01-12 at 3.54.05 PM.png
Screen Shot 2021-01-12 at 3.53.50 PM.png

It still doesn't work :'(
 

Attachments

  • Screen Shot 2021-01-12 at 3.54.05 PM.png
    Screen Shot 2021-01-12 at 3.54.05 PM.png
    77.8 KB · Views: 93
  • Screen Shot 2021-01-12 at 3.53.50 PM.png
    Screen Shot 2021-01-12 at 3.53.50 PM.png
    45.4 KB · Views: 105
Status
Not open for further replies.