Detecting a score
#6

I really forget to add this

pawn Код:
stock HighestTopList(const playerid, const Valuez, Player_ID[], Top_Score[], Loop)  //   Created by Phento
{
    new
        t = 0,
        p = Loop-1;
    while(t <= p) {
        if(Valuez >= Top_Score[t]) {
            if(Top_Score[t+1] <= 0) p = t+1;
            while(p > t) { Top_Score[p] = Top_Score[p - 1]; Player_ID[p] = Player_ID[p - 1]; p--; }
            Top_Score[t] = Valuez; Player_ID[t] = playerid;
            break;
        } t++; }
    return 1;
}
Reply


Messages In This Thread
Detecting a score - by Lorenc_ - 03.02.2011, 06:15
Re: Detecting a score - by Code_Red - 03.02.2011, 06:26
Re: Detecting a score - by Steven Paul - 03.02.2011, 06:29
Re: Detecting a score - by Retardedwolf - 03.02.2011, 07:15
Re: Detecting a score - by Lorenc_ - 03.02.2011, 07:33
Re: Detecting a score - by Steven Paul - 03.02.2011, 07:50
Re: Detecting a score - by Lorenc_ - 03.02.2011, 07:52
Re: Detecting a score - by Steven Paul - 03.02.2011, 08:17

Forum Jump:


Users browsing this thread: 1 Guest(s)