Variables are not saving

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

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

Deleted member 239

Hello,

I have a list, for example {List::*} with a lot of player names.
I can delete the list with "delete {List::*}", but with a restart the list is restored.

How can i fix this?

Best regards
H0peLess
 
Hello,

I have a list, for example {List::*} with a lot of player names.
I can delete the list with "delete {List::*}", but with a restart the list is restored.

How can i fix this?

Best regards
H0peLess

Have you tried clear instead of delete ?
 
Hello,

I have a list, for example {List::*} with a lot of player names.
I can delete the list with "delete {List::*}", but with a restart the list is restored.

How can i fix this?

Best regards
H0peLess

You also could loop the whole list and set everything to none instead...
 
code_language.skript:
set {YourList::*} to 0
Should work too
 
clear {List::*} doesn't work.
I will try it with set {List::*} to 0
[doublepost=1490277347,1490201797][/doublepost]Update:
set {List::*} to 0 doesn't work.

Here is my skript:


every minute:
hour is 0:
minute is 0:
delete {List::*}
execute console command "/save-all"

on vote:
add player to {List::*}
 
Status
Not open for further replies.