[Help] Top 5 [Any Pro Scripter]
#1

fixed
Reply
#2

Show the code.
Reply
#3

pawn Код:
new fstring[256], name[MAX_PLAYER_NAME];
            for(new i = 0; i < 5; ++i)
            {
                if(INVALID_PLAYER_ID != scoreid[i]) {
                    GetPlayerName(scoreid[i], name, sizeof(name));
                    format(fstring, sizeof fstring, "%s{FFFFFF}%d. {DE1868}%s (ID %d) : {3EA63A}%d\n", fstring, i+1, name, scoreid[i], score[i]);
                } else {
                    format(fstring, sizeof fstring, "%s{FFFFFF}%d. {DE1868}---\n", fstring, i+1);
                }
            }
Reply
#4

Increase the timer rate.
Reply
#5

Quote:
Originally Posted by Black Wolf
Посмотреть сообщение
Increase the timer rate.
And Why not use a TextDraw!
Reply
#6

i will add textdraw. But is anybody here who can fix this system?
Reply
#7

try delete that loop and use foreach.inc from ******.
Reply
#8

I don't know if you got this working yet but there is generally a break down of steps to do this.

1.) Gather all scores in a list from all players
2.) Sort list
3.) Update results

This is on a timer so a player disconnecting/connecting would automatically be updated.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)