(sos!) Help me fix some problem for my Sorting (name and score)

There is a red X in your blocks image, in the gethighscores procedure.

That procedure is incompatible with storing scores and names in a table.

I advise removing that procedure.

You have fallen for the sunk cost fallacy, where you have devoted so much time and money into something that won't work, that you are reluctant to give it up.

I, for one, will not fall for that.

i save as copy and run with other projectId for cludDb, now it turn to this result ( show only 1 value, and keep replace it when it is higher than the existing value)
image

omg, i just got the 5 result !!!!(is my size of the listview problem i guess hahah)

may i ask how to adjust it to follow the ascending order
image

There is a reverse list block.

image

:smiling_face_with_three_hearts:

can ia sk how can i pop up message to congras their name &score are on the top5list? is this ok? i want to say if the nameand score get from user are same with one of those 5 items in top5 list, then it will pop up.... (BUt I don't know where to find the block for one of those items inside the list

image
is thsi ok???

if (is in list(user name.text, listviewer of names.Elements) ) then
pop up a Notifier

This will tell you if you are in the top 5, but not if it is because you just won that spot.

You need to keep a personal best score in TinyDB and compare your new score against that score.

You could check if entry to the top 5 scores is new by checking if your name is in the top 5 names list before and after updating the lists. If the before check returns false and the after check returns true, you just got onto the top 5 list.
You would need an extra global variable for that, named like AlreadyOnTop5.

No.

image


can pop up that

image
how abt thsi(still cant pop up)

You would need to call the corrected procedure AFTER you reload the ListView Elements.

image
here?(still no show up

Maybe use a Notifier with an Okay button for the pop up.
Those are harder to miss.

If that doesn't work, use Do It on all parts of the logic.

debug show no error, but not showing the page or notifier

here is the do it:

it works well finally haha :rofl:

So 100 posts, and you learned Do It

Hey, I've encountered an issue. I need to modify the statement to 'not equal to 0' because otherwise, 'showSucestop5' gets called at the start of game when the initial score matches zero. However, changing it to 'not equal to 0' prevents 'showSucestop5' from being called when the user genuinely achieves a final score of 0.

Is there a way to make it so that 'showSucestop5' can still be called if the user's final score is 0, while also avoiding its call at the beginning of the game?" :slightly_smiling_face:


image