13.06.2015, 15:06
hey i do a dilaog for online donors but when 2+ donors ingame its show only the first one not all.
code:
code:
Код:
CMD:donors(playerid, params[]) { new count = 0, string[900]; for(new i = 0; i < MAX_PLAYERS; i ++) { if(PlayerInfo[i][dRank] >= 1){ count++; format(string, sizeof(string),"{0affea}%s | {FF7E19}dRank: %d\n",PlayerName2(i), PlayerInfo[i][dRank]); } } if (!count) SendClientMessage(playerid, COLOR_PINK,"No Donors Online"); else ShowPlayerDialog(playerid, DIALOG_WELCOMED, DIALOG_STYLE_MSGBOX, "{FF0000}Current Online Donors:", string, "Close", ""); return 1; }