individual variable

Started by AMonsterl on

Topic category: Help with MCreator software

Active 4 years ago
Joined Feb 2021
Points:
575

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
individual variable
Tue, 02/16/2021 - 18:40 (edited)

Hi, I'm making a mod "phone" in which you can register and log in, the problem is that, due to the global variable, registration is not distributed to one player but to all. Example: player 1 enters the password 2 times to register, this data is assigned to a variable, and the player opens a window with the login to enter the password and log in to the phone, and player 2 does not open the registration and immediately log in. Help me how to make an individual variable and not a global one.

Edited by AMonsterl on Tue, 02/16/2021 - 18:40
Active 4 weeks ago
Joined Apr 2018
Points:
746

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 125
You can use Player…
Wed, 02/17/2021 - 02:25

You can use Player Persistent global variable! 
It’s unique for all players!
If it still doesn't work, send a screen or the procedure itself

Active 4 years ago
Joined Feb 2021
Points:
575

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
Thanks for the answer! But I…
Wed, 02/17/2021 - 14:38

Thanks for the answer! But I tried Player Persistent, but nothing worked. All I could do was assign any value, but somehow I could not interact, an error was displayed.

Active 4 weeks ago
Joined Apr 2018
Points:
746

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 125
Hm... It’s very strange. It…
Wed, 02/17/2021 - 15:33

Hm... It’s very strange. It’s either a bug or your fault. What version are you using?

Active 4 weeks ago
Joined Apr 2018
Points:
746

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 125
Also can you send or…
Wed, 02/17/2021 - 15:35

Also can you send or procedure and error? I will try to find the source of this problem

Active 4 years ago
Joined Feb 2021
Points:
575

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
I found the answer, I used…
Thu, 02/18/2021 - 17:20

I found the answer, I used version 1.12.2. In which Player Persistent does not work, moved to 1.14.4 and everything worked

Active 4 weeks ago
Joined Apr 2018
Points:
746

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 125
I'm glad to hear it! Good…
Thu, 02/18/2021 - 21:40

I'm glad to hear it! Good luck developing your mod.