Jump to content

Skript: GUI with variables


Recommended Posts

My friend and just started a new minehut server where we only have 3 lives, I am just learning skript so I wanted to test how much I knew... clearly not much, but I want to know why there are 11 errors and how I can fix them. the code is in pastebin: https://pastebin.com/VQFsQiyA

 

The thing that is messed up is the command /livesplus at the bottom, I don't really understand how the GUI system works but I would like some help! Thanks!

Link to comment
Share on other sites

Hi there, would you mind sending a screenshot of the erros so it will be easier to help out? Also, in your server, what Skript addons are added (if any)?

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

Currently I am unable to get into my pc so I cannot take a screenshot, when I am able to get on again, I will post a screenshot of the errors, first I need to know what you mean the by the errors though. Do I need to take a picture ingame or a picture of the code on the minehut website? Also, I have no addons to the skript plugin.

Edited by FletcherMed
Link to comment
Share on other sites

I think the issue is you have no addons to the skript plugin. Looking at your code, it seems you are trying to make a GUI with the format of TuSKe skript addon. I suggest you add that plugin to your server and try to run the code again.

 

As for getting a screenshot of the error, what I mean is that when you reload the skript in-game with /sk reload [filename], if some error messages pop up in your chat, take a screenshot of those and send them over.

  • Like 1

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

Moved to Skript Discussion

Please post in the right category next time when needing help with skript. 

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Community Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

8 hours ago, FletcherMed said:

Once I am able to get on, I will take and send a screenshot of the errors if still needed. But for now while I am on mobile, I will add the TuSKe addon to skript and try to reload in the console.

Oh boy, here we go.

* You can replace "if player hasn't played before:" with "on first join:"

* remove the "livesplus" from formatting the gui

* with if statements you'll need a ":" at the end of them

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

17 hours ago, AgentGamerPro said:

Oh boy, here we go.

* You can replace "if player hasn't played before:" with "on first join:"

* remove the "livesplus" from formatting the gui

* with if statements you'll need a ":" at the end of them

Now I have 14 errors, so if you can maybe fix the problem for me... that might honestly be better lol here's the updated the code I have: https://pastebin.com/y1efE0Wg. If you wouldn't mind I think I would honestly prefer someone else to fix this since I have no idea what is going on and then I can have feedback and learn off of that along with more tutorials, lol.

Screenshot (3).png

Link to comment
Share on other sites

1 minute ago, FletcherMed said:

Now I have 14 errors, so if you can maybe fix the problem for me... that might honestly be better lol here's the updated the code I have: https://pastebin.com/y1efE0Wg. If you wouldn't mind I think I would honestly prefer someone else to fix this since I have no idea what is going on and then I can have feedback and learn off of that along with more tutorials, lol.

Screenshot (3).png

Also I forgot to change the colons from the format lines back to the if statements

Link to comment
Share on other sites

You have 2 main errors you need to fix.

1) Formatting. This is really evident in your whole skript as you use different spacing for each line and there are so many that are incorrect. Just stick with 1 and continue. I personally prefer 2 spaces but some do 4 spaces and some do 1 tab. Upto you.

uhh3.PNG.08553028f9f3a7455fbb66316ec4272d.PNG

2) You forgot to add the colons at the end of the if statements. Fix this.

uhh1.thumb.PNG.256e1ea6e692f1524ad9626f91725d7a.PNG

If you fix all thse issues I bet the skript will be working fine.

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

11 minutes ago, FletcherMed said:

Also I forgot to change the colons from the format lines back to the if statements

I have fixed the skript and here is the link:
https://pastebin.com/hjP4NKcq

  • Like 1

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

23 hours ago, AgentGamerPro said:

I have fixed the skript and here is the link:
https://pastebin.com/hjP4NKcq

After receiving your code, I encountered 6 errors, however, I have actually managed to fix all the errors, believe it or not. The only problem is, I can't seem to run it, Skript tells me: "An internal error has occurred while attempting to perform this command." when I try and run it. So if someone can try the command: /livesplus or /lp and see what happens. that would be awesome. If the same thing happens, then there is probably something wrong with the code still. Almost forgot the pastebin link lol: https://pastebin.com/jRmPDfGG 

 

Oh and if you manage to find the problem, whether it is in the code or not, can you please tell me, thanks!

Minecraft 1.16.5 4_20_2021 5_29_26 PM (2).png

Edited by FletcherMed
Forgot pastebin link and asked for solution if found
Link to comment
Share on other sites

EVERONE... IT WORKS!!! I took a little look at the log, and figured out that the problem was that I had a GUI addon and that was what was messing it all up. So I got rid of it and It works, now I just need to make a texture pack for the glass panes to hearts and I'm good! Thank you everyone for your help!

Minecraft 1.16.5 4_21_2021 4_52_21 PM (2).png

Link to comment
Share on other sites

12 minutes ago, FletcherMed said:

EVERONE... IT WORKS!!! I took a little look at the log, and figured out that the problem was that I had a GUI addon and that was what was messing it all up. So I got rid of it and It works, now I just need to make a texture pack for the glass panes to hearts and I'm good! Thank you everyone for your help!

Minecraft 1.16.5 4_21_2021 4_52_21 PM (2).png

No prob mate!

  • Like 1

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...