A procedure getting a "PLAYER_LIFETIME" variable for a player with the entered name

Started by BittleLit on

Topic category: Help with MCreator software

Last seen on 20:07, 9. Feb 2024
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
A procedure getting a "PLAYER_LIFETIME" variable for a player with the entered name

Hello, i am making a bank mod and i would like to make a procedure which gets a PLAYER_LIFETIME variable of the player whose name was entered:

However, text (string) modules can't be attached into entity slots, and custom code snippets (just like manually modifying the procedure code) throw a compilation error:

I really can't find a way to get around this, is there a way? If so, I would love if you could explain.

Last seen on 20:07, 9. Feb 2024
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh im sorry i didnt know…
Sat, 12/11/2021 - 12:48

Oh im sorry i didnt know printscreen wont work lemme make new photos

Last seen on 20:07, 9. Feb 2024
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
PLEASE HELP I LITERALLY…
Sun, 12/12/2021 - 14:46

PLEASE HELP I LITERALLY TRIED EVERYTHING I COULD EVEN CODE MODIFICATION BUT IT THROWS MORE ERRORS HELP

Last seen on 20:07, 9. Feb 2024
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
nvm found a way
Sat, 04/30/2022 - 11:05

nvm found a way

Last seen on 14:37, 2. Mar 2024
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Greetings, there is a link…
Sat, 04/30/2022 - 21:30

Greetings, there is a link to my discord channel in my mod, please come in, I will try to help you there, screenshots are not loaded

Last seen on 04:22, 20. Jul 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How did you fix this??????
Wed, 05/18/2022 - 04:12

How did you fix this??????

Last seen on 20:07, 9. Feb 2024
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hello
Sat, 07/02/2022 - 17:47

hello

Last seen on 20:07, 9. Feb 2024
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So basically, use the "For…
Sat, 07/02/2022 - 17:50

So basically, use the "For all players in the current world as [entity iterator] do", then into it add "if (get display name of (entity iterator) = abcedfg do" and then "Set text in textfield abcdefg (get variable (global: abcdefg) of player: (entity iterator)"

Last seen on 20:07, 9. Feb 2024
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The variable should be of…
Sat, 07/02/2022 - 17:51

The variable should be of type "Player_Persistent" or "Player_Lifetime"