Posts: 6,242
Threads: 8
Joined: Jun 2008
When this does work, it will spam the shit out of you every time it picks up a player higher than the 'best', it will show another line.
The format line, and the SendClientMessageToAll should be OUTSIDE the loop.
Posts: 11
Threads: 4
Joined: Oct 2016
Reputation:
0
I understand but if there are 2 players with the same kills does not come out any better, I would like one at least
Posts: 1,939
Threads: 11
Joined: Oct 2015
Reputation:
0
find the largest kills amount by looping and then loop again to concat the details of player having same amount of largest kills to a string and show that string as a message.
Posts: 6,242
Threads: 8
Joined: Jun 2008
Quote:
Originally Posted by Sarti
if there are 20 players, the prize for the best killer is repeated 20 times
|
That's what I said about before... Obviously you've got this inside a loop by simply copy-pasting it in the wrong place...
Posts: 203
Threads: 4
Joined: Feb 2017
Reputation:
0
Add break; to the end of your loop.
Posts: 6,242
Threads: 8
Joined: Jun 2008
Quote:
Originally Posted by raydx
Add break; to the end of your loop.
|
Can you not guess... It's pretty clear what the issue is if you know what is going on.