Hi guys, I'm little new to pawn scripting for amxx so I hope somebody will help me I'm creating plugin for top time/online time on server using nVault include. So far I've done function and command to check time spent on server for any player and function for deleting all times, but now I want to make toptime command that will show top 15 players (online and offline) that were most on server.
This is for saving times:
Spoiler
Sacuvaj(id, time) {
Vault = nvault_open(VAULTNAME)
if(Vault == INVALID_HANDLE)
server_print("Greska u otvaranju fajla: %s",VAULTNAME) //error in opening nVault file
else
{
new steamid[32], playerinfo[1][32]
new key[32], val[511], TimeStamp
I didn't use MySQL since I won't show times on webpage so please don't recommend me that. If someone can give me example how to create function for showing top 15 players that were most online (MOTD or console print), I would really appreciate it.
Last edited by xxxnenadxxx; 08-15-2013 at 21:43.
Reason: typo