individual variable

Started by AMonsterl on

Topic category: Help with MCreator software

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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
Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.

Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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?

Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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

Joined Apr 2018
Points:

User statistics:

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

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