#Show player scores in forms

1 messages · Page 1 of 1 (latest)

jade maple
#

It doesn't show the score of the player who opens it. It shows "Your playtime: 0h 0m 0s" every time. (player is defined as player but player and player.name doesn't work)

form.body(`Your playtime: ${getScore("h", player.name)}h ${getScore("m", player.name)}m ${getScore("s", player.name)}s\n`);```
jade maple
#

Please help me ❤️

analog stone
#

do getScore("h", player)

jade maple
#

Doesn't work too, already tried it

analog stone
#

show full code

jade maple
analog stone
#

yeah but if thats not the issue it means the issue is in another part of the code

jade maple
#

No

#

It's in the getScore part

#

It says 0h 0m 0s

#

Instead of 2h 43m 12s

analog stone
#

show me your getscore function

jade maple
#

It works

grizzled meteor
jade maple
#

The getScore function

jade maple
#

My score is 2h 43m 12s

analog stone
jade maple
#

No, I already told you everything you need to know about... Why would you need my code?

analog stone
#

to fix it????

#

bruh

#

like if u feel like someone is gonna steal if which no one will cus forms are so easy to make then fix it urself

jade maple
#

The command with the same function works

#

So there is no error

analog stone
#

bro

grizzled meteor
jade maple
#

It's just the player target

jade maple
analog stone
#

u sure you didnt invert the score and player in getScore?

#

instead of getScore('h', player.name) maybe it should be getScore(player, 'h')

jade maple