Jump to content

"an entity cannot be saved"


doxifieq

Recommended Posts

on damage:
    attacker is a player
    victim is a player
    set damage to 0

    set {attacker::%uuid of victim%} to attacker

on death:
    if {attacker::%uuid of player%} is set:
        broadcast "{@logo} &b%player% &7was knocked into the void by &b%{attacker::%uuid of player%}%"
        delete {attacker::%uuid of player%}
    else:
        broadcast "{@logo} &b%player% &7died"
        delete {attacker::%uuid of player%}

the script above works perfectly fine, however i'm greeted with this message upon reloading the script.

is there a way to prevent this?

image.png

Link to comment
Share on other sites

  • 2 weeks later...

It’s just a warning. Your code should still work fine. I wouldn’t disable it because sometimes warning can help you know why something doesn’t work. 

Owner of oldgaffle.minehut.gg. (my paintball server)

Owner of karted.minehut.gg. (my mario kart server)

Advocate of individual freedom, especially freedom of speech.

Cooler than Stalemate128.

Link to comment
Share on other sites

the entity wont be saved in the variable when the server stops or restarts.

 

 

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...