The online racing simulator
setuserstoredvalue listing
Is there a method to list the data I saved with setuserstoredvalue?
What I want to do is to record the distance of the players and then list them and show the player with the highest distance
help pls
** Best answer **
There is something you can do with
getlisttopuser();

LFSLapper version must be 7.0.9.3 or higher

Here is an example code.

$value = ""; #NameOfStoredValue
$flagdesc = "";DESC (descending order ) or ASC (ascending order)
$flagNear = "FALSE"; #TRUE or FALSE
$StartPos = 1;

$toplist = getlisttopuser($value,$flagdesc,$flagNear,$StartPos); #Get List from stored database

#Possible variables
#$toplist["ListCount"] = Number of records saved for requested storedvalue
#$toplist[$pos,"UserName"]
#$toplist[$pos,"NickName"]
#$toplist[$pos,"Value"]

$GetMaxRecords = 1000;
FOR($pos = 0;$pos <= ToNum($GetMaxRecords); $pos = $pos + 1)

#Example
globalmsg($pos.": ".$toplist[$pos,"NickName"] ." (".$toplist[$pos,"UserName"]."): ".$toplist[$pos,"Value"]."");

ENDFOR

ty

FGED GREDG RDFGDR GSFDG