Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Leaderboard= table.foreach(table,function(i,v) _G[i]= v; end) or function()
- local str, lb= '<n>%d. <v>%s <n>- <j>%s', {};
- r= foreach(tfm.get.room.playerList,function(i,v) lb[#lb+1]= {s=v.score,n=i}; end) or sort(lb,function(a,b) return a.s > b.s; end);
- return foreach(lb,function(i,v) r= i < 11 and (not r and str:format(i,v.n,v.s) or r..'\n'..str:format(i,v.n,v.s)) or r; end) or r;
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement