10.06.2016, 08:20
Try this i hope it works
Quote:
CMD:vips(playerid, params[]) { #pragma unused params new count = 0, string[800]; for(new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { if(PlayerInfo[i][dRank] >= 1) { format(string, 500, "%s %s [ID:%i] | DonorLevel: %d\n", string, PlayerName2(i), i, PlayerInfo[i][dRank]); //We are appending the string, so put %s before any new data is added, //and that parameter actually refers to the string itself. count++; } } } if (count == 0) ShowPlayerDialog(playerid, 800, DIALOG_STYLE_MSGBOX, "{F81414}=Online Donators=", "{00FFEE}No Donators Online\n{00FF00}_____", "Close", ""); else ShowPlayerDialog(playerid, 800, DIALOG_STYLE_MSGBOX, "{F81414}=Online Donators=", string, "Close", ""); return 1; } |