SendClientMessage
#8

Quote:
Originally Posted by AroseKhanNaizi
Посмотреть сообщение
Код:
	SendMessageToAllBut(playerid, color, const str[])
	{
    for(new i = 0; i < MAX_PLAYERS; i ++)
    {
      if(!IsPlayerConnected(i)) continue;
      if(playerid == i) continue;

      SendClientMessage(i, -1, stri);
    }
   	TextDrawShowForAllBut(playerid, const str1[])
	{
    for(new i = 0; i < MAX_PLAYERS; i ++)
    {
      if(!IsPlayerConnected(i)) continue;
      if(playerid == i) continue;

      TextDrawSetString(Textdraw222, str1);
      TextDrawShowForPlayer(i,Textdraw222);
    }
like this and i know how to SendClientMessageToAll and SendClientMessage at last read it full and Thanks anyway.
Matess and CuervO will it work like this ??
Yes it will work, however, you can keep the TextDrawSetString out of the loop as you only need to set the string once. Also I hope it was intentional but you're missing two closing brackets '}'
Reply


Messages In This Thread
SendClientMessage - by AroseKhanNiazi - 12.03.2014, 15:36
Re: SendClientMessage - by Clad - 12.03.2014, 15:37
Re: SendClientMessage - by 7Ahmad7 - 12.03.2014, 15:40
Re: SendClientMessage - by CuervO - 12.03.2014, 15:57
Re: SendClientMessage - by Matess - 12.03.2014, 16:02
Re: SendClientMessage - by CuervO - 12.03.2014, 16:17
Re: SendClientMessage - by AroseKhanNiazi - 12.03.2014, 16:37
Re: SendClientMessage - by CuervO - 12.03.2014, 16:40
Re: SendClientMessage - by AroseKhanNiazi - 12.03.2014, 17:38
Re: SendClientMessage - by AroseKhanNiazi - 13.03.2014, 14:42

Forum Jump:


Users browsing this thread: 1 Guest(s)