Posts: 375
Threads: 117
Joined: Feb 2009
Reputation:
0
How to get the highest player score in the server? thanks...
Posts: 603
Threads: 19
Joined: Nov 2007
Reputation:
0
I'll tell you what you'll need to do instead of posting code:
In your procedure:
- Declar a variable and initialize it to 0, like "new HighestOne = -1;"
- Loop through all connected players:
-- compare the player's score with the score of the player "HighestOne", but if "HighestOne" is -1 then we'll skip that check and save the current id in the loop into HighestOne
- At the end, when the loop finished, you'll have the player with the highest score in the variable HighestOne.
Posts: 375
Threads: 117
Joined: Feb 2009
Reputation:
0
LOL? Could not find any code.
Posts: 375
Threads: 117
Joined: Feb 2009
Reputation:
0
I could not find nothing the help me.