Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use edit gui syntax #182

Open
GalaxyGamingFR opened this issue Aug 28, 2024 · 0 comments
Open

Can't use edit gui syntax #182

GalaxyGamingFR opened this issue Aug 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@GalaxyGamingFR
Copy link

Description

When using edit gui of player, nothing happens.

Steps to Reproduce

`function tagsGUI(p: player, page: integer=1):
create a gui with chest inventory with 6 rows named "Tags":
make gui slots (integers between 0 to 53) with black stained glass pane named "&8"
make gui slots (integers between 10 and 16 and integers between 19 and 25 and integers between 28 and 34 and integers between 37 and 43) with stone button named "&8"
if {_page} is 1:
make gui slot 47 with red dye named "&aNo previous pages"
else:
make gui slot 47 with arrow named "&aPrevious Page":
tagsGUI({_p}, ({_page} - 1))
if size of {reactions::messages::register::%{_category}%::*} > 28:
make gui slot 51 with arrow named "&aNext Page":
tagsGUI({_p}, ({_page} + 1))
else:
make gui slot 51 with red dye named "&aNo more pages"
make gui slot 49 with barrier named "&aBack":
close {_p}'s inventory
set {_start_index} to 1 + (-28 + (28 * {_page}))
set {_end_index} to {_page} * 28
set {_slot} to 10
loop all integers between {_start_index} and {_end_index}:
set {_id} to loop-value
exit loop if {-tags::register::%{_id}%} is not set
showTag({_p}, {_id}, {_slot})
add 1 to {_slot}
if {_slot} = (17, 26, or 35):
add 2 to {_slot}
else if {_slot} = 44:
exit loop
open the created gui to {_p}

function showTag(p: player, id: integer, slot: integer):
edit gui of {_p}:
set {_tag} to name tag named "&x&F&F&1&3&6&9ᴛᴀɢ ᴘʀᴇᴠɪᴇᴡ"
add "&8" and "&x&F&F&1&3&6&9• %colored prefix of {_p}%&r%{-tags::register::%{_id}%::tag}% &r&f%{_p}% &8» %{stats::chatcolor::%{_p}'s uuid%} ? "&f"%Hi" to lore of {_tag}
add "&8" and "&x&F&F&1&3&6&9ʀɪɢʜᴛ ᴄʟɪᴄᴋ ᴛᴏ ᴇǫᴜɪᴘ " to lore of {_tag}
if {_p} has permission "tags.%{-tags::register::%{_id}%::uncolored-tag}%":
make gui slot {_slot} with {_tag}:
setTag({_p}, {_id})
close {_p}'s inventory
send "{@Prefix} You've selected the tag %{-tags::register::%{_id}%::tag}%&f."`

Expected Behavior

To set the slot to a name tag for the tags

Errors / Screenshots

No errors,
Screenshot 2024-08-27 at 6 50 36 PM

Server Information

  • Server version/platform:
  • skript-gui version:
  • Skript version:
Screenshot 2024-08-27 at 6 52 12 PM

Additional Context

@GalaxyGamingFR GalaxyGamingFR added the bug Something isn't working label Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant