Posts: 56
Threads: 9
Joined: May 2015
Quote:
Originally Posted by Kaliber
Write it like this:
PHP код:
CMD:donors(playerid, params[])
{
new string[512];
for(new i,l=GetPlayerPoolSize()+1; i < l; i ++)
{
if(!IsPlayerConnected(i) || !PlayerInfo[i][dRank]) continue;
format(string, sizeof(string),"%s{0affea}%s | {FF7E19}dRank: %d\n",string,PlayerName2(i), PlayerInfo[i][dRank]);
}
if (!string[0]) return SendClientMessage(playerid, COLOR_PINK,"No Donors Online");
ShowPlayerDialog(playerid, DIALOG_WELCOMED, DIALOG_STYLE_MSGBOX, "{FF0000}Current Online Donors:", string, "Close", "");
return 1;
}
|
thank you <3 +rep