• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

[PHP] Select From DB (Game-highscores)

Ancores

Active Member
Joined
Jan 17, 2010
Messages
538
Reaction score
28
Would be great if someone could make this for me!

I want to show highscores of a "game" on my server, so something like:

[Player Name], [Wins], [Times played]
Name, Storage Value, Storage Value


Order by wins(a storage value of the player)

[MySQL]
Tell me if you need more information, thanks.
 
Like this:


But instead of "Level" it should be "Wins" and instead of Vocation it should be "Times played".
Everytime a player wins the game his storage value increases by 1, so the wins column should be the storage value of a player.
I hope that's enough :p
 
Wins and Times played are storage values of the player.
Code:
setPlayerStorageValue(cid, 19293, getPlayerStorageValue(cid, 19293)+1)
 
Last edited:
Back
Top