Variable list // added twice

  • Thread starter Deleted member 9590
  • Start date
  • 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 9590

Hello there, so some weird reason, values are added twice to list variables..
Ex. the name of the gang here is added twice, even though I clearly only am adding it once
(the variable in question here is "{bb::*}"
Code:
            set {bb::%uuid of player%} to message
            set {bb::%message%::oprettet} to now
            set {bb::%message%::message} to message
            add message to {bb::*}
            add uuid of player to {bb::%message%::medlemmer::*}
            add player to {bb::%message%::pmedlemmer::*}
            set {bb::%message%::ejer} to uuid of player
            set {bb::%message%::%uuid of player%::rangnummer} to 4
            set {bb::%message%::level} to 1
            set {bb::%message%::bankkonto} to 0
            set {bb::%message%::kills} to 0
            set {bb::%message%::deahts} to 0
            set {bb::%message%::vagtkills} to 0
            set {bb::%message%::damage} to 100
            set {bb::%message%::maxmedlemmer} to 3

here is the full code
https://pastebin.com/gVWQGidt
 
Hello there, so some weird reason, values are added twice to list variables..
Ex. the name of the gang here is added twice, even though I clearly only am adding it once
(the variable in question here is "{bb::*}"
Code:
            set {bb::%uuid of player%} to message
            set {bb::%message%::oprettet} to now
            set {bb::%message%::message} to message
            add message to {bb::*}
            add uuid of player to {bb::%message%::medlemmer::*}
            add player to {bb::%message%::pmedlemmer::*}
            set {bb::%message%::ejer} to uuid of player
            set {bb::%message%::%uuid of player%::rangnummer} to 4
            set {bb::%message%::level} to 1
            set {bb::%message%::bankkonto} to 0
            set {bb::%message%::kills} to 0
            set {bb::%message%::deahts} to 0
            set {bb::%message%::vagtkills} to 0
            set {bb::%message%::damage} to 100
            set {bb::%message%::maxmedlemmer} to 3

here is the full code
https://pastebin.com/gVWQGidt

''{bb::%uuid of player%}'' and ''{bb::*}'' is basically the same variable.

You're setting the variable as the message and adding the same message to a global list ''::*}''

Don't use ''::%player's uuid%'' if you're saving only a thing (ex: a message). Change it to '' {bb.%uuid of player} ''

Sorry for my english btw
 
''{bb::%uuid of player%}'' and ''{bb::*}'' is basically the same variable.

You're setting the variable as the message and adding the same message to a global list ''::*}''

Don't use ''::%player's uuid%'' if you're saving only a thing (ex: a message). Change it to '' {bb.%uuid of player} ''

Sorry for my english btw


Okay thank you, but then why is the player name then sometimes added twice to the variable "{bb::%{bb::%{_uuid}%}%::emoji_stuck_out_tongue:medlemmer::*}" ??
 
Status
Not open for further replies.