Thread: Timer error
View Single Post
Old 29/06/2020, 06:28 PM   #2
GameOvr
Huge Clucker
 
GameOvr's Avatar
 
Join Date: Jun 2018
Posts: 296
Reputation: 9
Default Re: Timer error

Code:
mostkills = INVALID_PLAYER_ID
if(MgKills[i] > MgKills[mostkills])
If you still didnt understand the problem just repost I'll explain...

Here you go, I guess its a mistake
Code:
forward miniguntimer();
public miniguntimer()
{
    new string[128], mostkills = INVALID_PLAYER_ID;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && InEvent[i] == true)
        {
            if(mostkills == INVALID_PLAYER_ID) mostkills = i;
            if(MgKills[i] > MgKills[mostkills]) mostkills = i;
        }
    }
    format(string, sizeof(string), "The player with Most Kills is %s with %d kills.", GetName(mostkills), MgKills[mostkills]);
    SendClientMessageToAll(MGDM, string);
    return 1;
}
__________________
GameOvr is offline   Reply With Quote