Chat is mixed with another
#1

hey there
i was trying to create a private chat for players that are in table
but if there are 1+ tables created the chat goes mixed for both
can you help me out please

Код:
COMMAND:tt(playerid, params[])
{
 if(GetPVarInt(playerid,"ontable") == 1)
 {
 new iText[ 128 ];
    if(sscanf(params, "s", iText)) return SCP(playerid, "[msg]");
    PlayerLoop(i)
    {
            format(iStr, sizeof(iStr),"(( [TABLE] %s: %s ))", RPName(playerid), iText);
            SendClientMessage(i, 0x216B98FF, iStr);
    }
 }
 return SendClientMessage(playerid, -1 , "You are not in any table");
}
Reply


Messages In This Thread
Chat is mixed with another - by ThatFag - 20.08.2016, 21:05
Re: Chat is mixed with another - by Shinja - 20.08.2016, 21:11

Forum Jump:


Users browsing this thread: 2 Guest(s)