02.08.2012, 20:11
Hello. I got a small problem wich i also had it in past, but in past i knew how to fix it,and now , after 1 year of pause from scripting, i forgot how to fix it. Okay, so here it is. When a player types /players, a list dialog should pop up saying the connected players names. ( names should be like name undes name as it's a list dialog .) but for me it always shows the name of the player with the highest id. So do you guys know how to solve this?
Код:
new name[] = "\n"; for(new i;i<MAX_PLAYERS;i++); { if(IsPlayerConnected(i)) { format(string,sizeof(string),"%s%s",name,PlayerName(i); ShowPlayerDialog(playerid,1000,"test",string,"ok"); continue; } //and then the loop ends