05.06.2016, 03:19
I make this command >
It's not show me the [HG] members who online, But just show me "No [HG] Clan Members online in the list".
Who can solve my problem, Please help me to solve it.
Thanks For Reading And God Bless You All
PHP код:
CMD:hgmembers(playerid, params[])
{
SendClientMessage(playerid, lightblue, " ");
SendClientMessage(playerid, lightblue, "___________ |- Online [HG] Clan Members -| ___________");
SendClientMessage(playerid, lightblue, " ");
new count = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
if(!PlayerInfo[i][HGRank]) continue;
new string[90], playersname[MAX_PLAYER_NAME];
GetPlayerName(i, playersname, sizeof(playersname));
switch(PlayerInfo[i][HGRank])
{
case 1: format(string, sizeof(string), "{33AA33}Rank: %d - %s (ID:%i) | Newbie", PlayerInfo[i][HGRank], playersname, i);
case 2: format(string, sizeof(string), "{33AA33}Rank: %d - %s (ID:%i) | Old Member", PlayerInfo[i][HGRank], playersname, i);
case 3: format(string, sizeof(string), "{FFFF00}Rank: %d - %s (ID:%i) | Super Member", PlayerInfo[i][HGRank], playersname, i);
case 4: format(string, sizeof(string), "{000000}Rank: %d - %s (ID:%i) | Professional Member", PlayerInfo[i][HGRank], playersname, i);
case 5: format(string, sizeof(string), "{33CCFF}Rank: %d - %s (ID:%i) | Master Member", PlayerInfo[i][HGRank], playersname, i);
case 6: format(string, sizeof(string), "{C0C0C0}Rank: %d - %s (ID:%i) | Elite Member", PlayerInfo[i][HGRank], playersname, i);
case 7: format(string, sizeof(string), "{FF0000}Rank: %d - %s (ID:%i) | Co-Leader", PlayerInfo[i][HGRank], playersname, i);
case 8: format(string, sizeof(string), "{FF0000}Rank: %d - %s (ID:%i) | Leader", PlayerInfo[i][HGRank], playersname, i);
case 9: format(string, sizeof(string), "{FF9900}Rank: %d - %s (ID:%i) | Manager", PlayerInfo[i][HGRank], playersname, i);
case 10: format(string, sizeof(string), "{AA3333}Rank: %d - %s (ID:%i) | Founder", PlayerInfo[i][HGRank], playersname, i);
default: continue;
}
SendClientMessage(playerid, red, string);
count++;
}
if(!count) SendClientMessage(playerid, lightblue, "No [HG] Clan Members online in the list");
SendClientMessage(playerid, lightblue, "___________________________________________________");
return 1;
}
Who can solve my problem, Please help me to solve it.
Thanks For Reading And God Bless You All