V.I.P Chat
#5

Your code was wrong anyway...
pawn Код:
public OnPlayerText(playerid, text[])
{
    new params[129];
    }
    if(text[0] == '#' && if(PlayerInfo[playerid][pVIP] >= 2)
    {
        new str[128];
        format(str, sizeof(str), "VIP CHAT: %s[%d]: %s", GetName(playerid), playerid, text[1]);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i) && if(PlayerInfo[playerid][pVIP] >= 2)
            {
                SendClientMessage(i, COLOR_YELLOW, str);
            }
        }
        return 0;
    }
    return 1;
}
Take a closer look. I'd say YOU are the only one 'copying' codes here...
Also take note that Jewell's code is much more correct than yours is... where have you defined COLOR_YELLOW? Are you just assuming the poster would already have this defined?
Reply


Messages In This Thread
V.I.P Chat - by California_ - 27.01.2013, 04:15
Re: V.I.P Chat - by SwisherSweet - 27.01.2013, 04:26
Re: V.I.P Chat - by Jewell - 27.01.2013, 05:20
Re: V.I.P Chat - by SwisherSweet - 27.01.2013, 05:30
Re: V.I.P Chat - by Threshold - 27.01.2013, 06:55
Re: V.I.P Chat - by Jewell - 27.01.2013, 07:08
Re: V.I.P Chat - by XStormiest - 27.01.2013, 07:16

Forum Jump:


Users browsing this thread: 2 Guest(s)