[SOLVED]catch top point
hi,
i have no idea how can i catch the best players points. every user get every round X AGs ( set by speed ) example : when user has 1000 units/s = 1 AG when more than 1200 & less 1400 = 2 AGs so i want to have a loop on round end and print which player got the most AGs in this/last round. but i have no idea how to catch it. i hope you know what i mean :( |
Re: catch top point
Code:
|
Re: catch top point
hmmm....
ty but how is it when 2 or more users are the top scorer? and how to catch top 5? |
Re: catch top point
sort? :D
|
Re: catch top point
hehe :D the question is how to sort?!
|
Re: catch top point
|
Re: catch top point
hmmm...
ok this works but what i want is complicated. the rank must be sort by Received AGs and Maxspeed and lower fps. For example : there are 2 users which got 3 AGs. both have 100 fps_max but user 1 got 1250 units/s and user 2 got 1270 units/s. so rank 1 willbe user 2 and rank 2 willbe user 1. Example with names : Xpaw got 4 AGs and his fps_max is on 100. his max speed 1420 units/s. One got 4 AGs and his fps_max is on 100 too. his max speed 1534 units/s. Rank : 1. One ( 4 AGs ) 2. Xpaw ( 4 AGs ) what i have : users_AG[id] = users AG users_maxspeed_round[id] = maxspeed which user got in the round i tried to sort it with AGs and maxspeed but like ever .... only errors. so i didnt try to catch users fps_max. i have realy no idea how to sort it. i hope anyone has time and can give a start.for sure i give credit in release topic. ty in advance |
Re: catch top point
I have a doubt.
What happens if Player 1 has 5 points, 90 fps and 1250 units / s and Player 2 has 10 points, 100 fps and 1150 units / s ?? Which is the order of priority? |
Re: catch top point
for sure player 2.
player 2 has more AGs.then you have to know you get more points/AGs when you are faster. what i meant was if both/more users have the same points/AGs. then it willbe sorted by fps. if both have the same fps_max, it willbe sorted by speed. maybe we can ignore the fps. for first Points and after this speed. |
Re: catch top point
Code:
Usage: Code:
|
| All times are GMT -4. The time now is 14:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.