How to get Highest deaths with player name in a Round
#4

a fix on @Lokii solution. not skipping and never assigning last_score to a value.

PHP код:
        if(!IsPlayerConnected(i) || IsPlayerNPC(i) || p_Deaths[i] <= last_score || (last_player  != -&& p_Deaths[i] <= p_Deaths[last_player] )) continue; //if player not connected, npc or got same score as previous player or less (skip)
        
last_player i//set the last player with best score
        
last_score p_Deaths[i]; 
Reply


Messages In This Thread
How to get Highest deaths with player name in a Round - by TadePoleMG - 04.05.2018, 15:47
Re: How to get Highest deaths with player name in a Round - by Lokii - 04.05.2018, 16:27
Re: How to get Highest deaths with player name in a Round - by TadePoleMG - 04.05.2018, 16:42
Re: How to get Highest deaths with player name in a Round - by jlalt - 04.05.2018, 19:35

Forum Jump:


Users browsing this thread: 1 Guest(s)