Function Not Working +REP
#2

pawn Код:
stock GetHighestKiller()
{
    new m;
    for(new i = 0 ; i <= MAX_PLAYERS ; i++)
    {
        if(KillerScore[i] > KillerScore[m])
        {
            return i;
        }
    }
    return -1;
}
Also why you have m variable to be compared ?
When you
pawn Код:
new m;
It'll have "0" as a value.
Reply


Messages In This Thread
Function Not Working +REP - by Youssef214 - 23.06.2014, 08:08
Re: Function Not Working +REP - by RenovanZ - 23.06.2014, 08:13
Re: Function Not Working +REP - by Koala818 - 23.06.2014, 08:22
Re: Function Not Working +REP - by Youssef214 - 24.06.2014, 11:41
Re: Function Not Working +REP - by Youssef214 - 25.06.2014, 09:14
Re: Function Not Working +REP - by Threshold - 25.06.2014, 09:53
Re: Function Not Working +REP - by Youssef214 - 25.06.2014, 10:09

Forum Jump:


Users browsing this thread: 1 Guest(s)