Only 1 player will be shown from loop result
#1

pawn Код:
for(new i; i < MAX_PLAYERS; i++)
    {
        new string[500];
        format(string, 500, "%s%s (ID: %d) - Kills %d - Deaths X\n", string, GetName(i), i, PlayerInfo[i][pRKills]);
        ShowPlayerDialog(i, DIALOG_ROUNDEND, DIALOG_STYLE_LIST, "Round end - Player stats", string, "Continue", "");
        PlayerInfo[i][pRKills] = 0;
    }
That's my code. The loop will get player result and put them into the dialog, but for some reasons, the dialog is not going to show everyone's name. It is going to show only one player's name, mine.

So, if there are 2 people in the server, for example, iPrivate and Gregory, it will show me name, while for Gregory, it will show his name.

I hope you understand, thanks,
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)