Chat is mixed with another
#2

When you create tables you must assign to each table a different number, from your script i see that you just assign "1" to all tables, well the tt cmd must be like that
PHP код:
COMMAND:tt(playeridparams[])
{
     if(
GetPVarInt(playerid,"ontable") == 0) return SendClientMessage(playerid, -"You are not in any table");
    new 
iText128 ];
    if(
sscanf(params"s"iText)) return SCP(playerid"[msg]");
    
format(iStrsizeof(iStr),"(( [TABLE] %s: %s ))"RPName(playerid), iText);
    for(new 
ij=GetPlayerPoolSize(); i<ji++)
    {
        if(
GetPVarInt(i,"ontable") == GetPVarInt(playerid,"ontable"))
        {
            
SendClientMessage(i0x216B98FFiStr);
        }
    }

and if you don't know how to do the rest post creating tables code
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: 1 Guest(s)