Started by
AMonsterl
on
Topic category: Help with MCreator software
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
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
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.
Hm... It’s very strange. It’s either a bug or your fault. What version are you using?
Also can you send or procedure and error? I will try to find the source of this problem
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
I'm glad to hear it! Good luck developing your mod.