Ranking Players
#4

Quote:
Originally Posted by ReshiramZekrom
Посмотреть сообщение
Create a global variable such as "win = 0;" then in the final checkpoint create a switch:

pawn Код:
switch(win)
            {
                case 0:
                {
                    win++;
                                        //player has won the race
                }
                case 1:
                {
                    win++;
                                        //player is second
                }
                case 2:
                {
                    win++;
                                        //player is third
                }
And so on for the others
I have no idea what you wrote in that code.

Sorting an array which contains all players with quicksort would be a good idea:
http://forum.sa-mp.com/showpost.php?...postcount=1737
Reply


Messages In This Thread
Ranking Players - by Max_Andolini - 25.01.2015, 18:33
Re: Ranking Players - by ReshiramZekrom - 25.01.2015, 21:52
Re: Ranking Players - by Max_Andolini - 26.01.2015, 06:30
Re: Ranking Players - by dominik523 - 26.01.2015, 08:30
Re: Ranking Players - by Max_Andolini - 26.01.2015, 09:33
Re: Ranking Players - by ReshiramZekrom - 26.01.2015, 12:53

Forum Jump:


Users browsing this thread: 3 Guest(s)