Jump to content

Variables won't save


Pryzmm

Recommended Posts

    if {Collection::%{_p}%} does not contain "Default":
        add "Default" to {Collection::%{_p}%}
        send "%{Collection::%{_p}%}%" to {_p}
        send "&a&lYou discovered a new pet! &2Check your collection!" to {_p}

(This is in a function event)
No matter what, RIGHT AFTER i add "Default" to the variable, it sends "<none>" to the player, meaning it wasn't added.

  • Like 1

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Exploratory, 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

maybe try 

set {Collection::%{_p}%} to "Default"

As far as I know.. You don't do list variables this way. I was taught to do it like this: 
{Collection::%player%::*}

  • Like 1

rose city STICKER

RosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaR

i code, animate, develop, UI design, learn, and adapt, as well as make servers, of course

💐Joined Minehut sometime in 2014
💐VIP sometime in 2018
💐Legend in January 2021
💐Helper on 4/11/2021
💐♥ (Retired) on 5/17/2021
💐 Moderator on 8/18/2023

Link to comment
Share on other sites

48 minutes ago, rosathorn said:

maybe try 

set {Collection::%{_p}%} to "Default"

As far as I know.. You don't do list variables this way. I was taught to do it like this: 
{Collection::%player%::*}

ah thanks, im dumb

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Exploratory, 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...