Variables 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 comminuty!

    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.

ZyPA

Member
Jul 17, 2017
1
1
3
26
Okay so i'm creating an simple votepoint skript, The only problem i have is that everytime i restart/reload the server everyone losses all their vote points. Can anyone help i have tried everything but it just wont work


command /votepointadmin [<text>] [<player>] [<number>]:
aliases: /vpa
permission: vpa.*
permission message: &4&lYOU DO NOT HAVE ACCESS TO THAT COMMAND!
trigger:

if arg-1 is not set:
send "&8&l****** &6&l&nVOTE ADMIN&r &8&l******" to player
send " "
send "&e/vpa give &7<player> <amount>" to player
send "&e/vpa remove &7<player> <amount>" to player
send "&e/vpa set &7<player> <amount>" to player
send " "
send "&8&l****** &6&l&nVOTE ADMIN&r &8&l******" to player

if arg-1 is "give":
if arg-2 is not set:
send "&8(&6VOTE&8) &c&lYou have to choose an player!" to player
else:
if arg-3 is not set:
send "&8(&6VOTE&8) &c&lYou have to choose an amount!" to player
else:
add arg-3 to {votepoints.%arg-2%}
send "&8(&6VOTE&8) &6&lYou gave %arg-2% %arg-3% vote points" to player

if arg-1 is "remove":
if arg-2 is not set:
send "&8(&6VOTE&8) &c&lYou have to choose an player!" to player
else:
if arg-3 is not set:
send "&8(&6VOTE&8) &c&lYou have to choose an amount!" to player
else:
remove arg-3 from {votepoints.%arg-2%}
send "&8(&6VOTE&8) &6&lYou removed %arg-3% from %arg-2%'s vote points" to player

if arg-1 is "set":
if arg-2 is not set:
send "&8(&6VOTE&8) &c&lYou have to choose an player!" to player
else:
if arg-3 is not set:
send "&8(&6VOTE&8) &c&lYou have to choose an amount!" to player
else:
set {votepoints.%arg-2%} to arg-3
send "&8(&6VOTE&8) &6&lYou set %arg-2%'s vote points to %arg-3%" to player

command /votepoints [<text>]:
aliases: /vp
trigger:
if {votepoints.%player%} is not set:
set {votepoints.%player%} to 0
if arg-1 is not set:
send "&6&lYou're Vote Points: &a&l%{votepoints.%player%}%"
else:

send "&6&l%arg-1 parsed as an player%'s Vote Points: &a&l%{votepoints.%arg-1 parsed as a player%}%"


Thats the entire skript so yea pls help
 
Hmm, Are you on the latest version? May not be a version issue, but I can't think of anything else that would cause that:emoji_frowning:
I know I use the latest Bensku version and my variables are fine on restart.
And if you are on the latest, perhaps reinstalling skript, just to cover the basic troubleshooting and such
 
Last edited:
Status
Not open for further replies.