View Single Post
  #13  
Old 05-02-2008, 07:06 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
didn't i do this for era like three years ago?
anyway, here's a better script probably. change the loop at the bottom and it'll give you the top richest players etc

PHP Code:
function onCreated() {
  for (
temp.igetstringkeys("this.acc_")) 
    
temp.accs.add({ithis.("acc_" i)[0]});
    
  for (
iaccs) {
    
temp.e.add(i[0]);
    
temp.e[temp.c].sortvalue i[1];
    
temp.c++;
  }
  
e.sortbyvalue("sortvalue""float"false);
  
  echo(
"Richest 5 Players:");
  for (
05i++) 
    echo(
e[i] @ ":-" SPC this.("acc_" e[i])[0]);


Last edited by [email protected]; 05-02-2008 at 07:36 PM..
Reply With Quote