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

Started by BittleLit on

Topic category: Help with MCreator software

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.

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

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

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

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

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??????

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)"

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"