/members Command
#5

Quote:
Originally Posted by FilesMAker
Посмотреть сообщение
You need to make a boucle.
Код:
SendClientMessage(playerid, Colour, "--------| Member and Stuff |--------");
for(new i; i<MAX_PLAYERS; i++)
{ 
      if(!IsPlayerConnected(i)) return 0;
      if(PlayerInfo[i][pMember] > 0) SendClientMessage(playerid, Colour, Message);
}
SendClientMessage(playerid, Colour, "------------------------------------");
You can add your style
Returning 0 will break the loop, something we don't want. Use continue; instead. Showing a message is not something the author asked either. You should format a string with the player's name.

I'd make it for you but I don't know how pMember and pLeader work (not a rp fan).
Reply


Messages In This Thread
/members Command - by NewbieTester - 21.02.2014, 10:09
Re: /members Command - by FilesMAker - 21.02.2014, 10:19
Re: /members Command - by Aerotactics - 21.02.2014, 10:21
Re: /members Command - by Vanter - 21.02.2014, 10:22
Re: /members Command - by Konstantinos - 21.02.2014, 10:23
Re: /members Command - by FilesMAker - 21.02.2014, 10:26
Re: /members Command - by Brandon_More - 21.02.2014, 11:02

Forum Jump:


Users browsing this thread: 3 Guest(s)