Check Who Has The Most Cookies At The End...
#2

pawn Код:
stock GetPlayerWithMostCookies( ) {
    new iRecord = 0;
    new iChoosenPlayer = MAX_PLAYERS + 1;
    foreach(Player, i) {
        if ( cookies[i] > iRecord ){
            iRecord = cookies[i];
            iChoosenPlayer = i;
        }
    }
    return iChoosenPlayer;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)