22.07.2013, 07:58
i am trying to create a list of top players but when there is one player connected the list shows this ↓
but i want it like this if there is only one player connect then it should be shown like this.
here is the code.
I exactly want to explain that if player no connect it should show this "--" sign in the list.
hope you have understood.
Код:
1. Player1 2. Player1 3. Player1 4. Player1 5. Player1
Код:
1. Player1 2. -- 3. -- 4. -- 5. --
pawn Код:
new string[5][200];
for(new i =0;i<5;++i)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(scoreid[i],name,sizeof(name));
format(string[i],200,"{FFFFFF}%d. {DE1868}%s (ID %d) : {3EA63A}%d",i+1,name,scoreid[i],score[i]);
}
new fstring[300];
format(fstring,300,"%s\n%s\n%s\n%s\n%s",string[0],string[1],string[2],string[3],string[4]);
hope you have understood.