[HELP]OnPlayerText Problem.
#7

Quote:
Originally Posted by Romel
Посмотреть сообщение
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(UserInfo[playerid][USER_STAT_LOGGED] == true)
    {
        new
            str[128 + (8 * 4)];
        //
        /* LINE 463 */ if(UserInfo[playerid][USER_STAT_ADMINISTRATOR] >= 1)
        {
            /* LINE 466 */ format(str, sizeof(str), ""#EMB_COL_RED"%s["EMB_COL_WHITE"M"EMB_COL_RED"]"EMB_COL_WHITE": %s", _Name, text[0]);
            SendClientMessageToAll(-1, str);
            SetPlayerColor(playerid, COL_BLUE);
        }
        //
        if(UserInfo[playerid][USER_STAT_MODERATOR] >= 1)
        {
            /* LINE 473 */ format(str, sizeof(str), ""#EMB_COL_BLUE"%s["EMB_COL_WHITE"M"EMB_COL_BLUE"]"EMB_COL_WHITE": %s", _Name, text[0]);
            SendClientMessageToAll(-1, str);
            SetPlayerColor(playerid, COL_BLUE);
        }
    }
    return 1;
}
or try removing EMB_

to avoid the syntax error...
There wouldn't be a syntax error associated with that..

pawn Код:
#define EMB_COL_WHITE "{FFFFFF}"
It works perfectly fine.
Reply


Messages In This Thread
[HELP]OnPlayerText Problem. - by TheBluec0de - 08.05.2012, 11:48
Re: [HELP]OnPlayerText Problem. - by 2KY - 08.05.2012, 11:51
Re: [HELP]OnPlayerText Problem. - by newbienoob - 08.05.2012, 11:52
Re: [HELP]OnPlayerText Problem. - by TzAkS. - 08.05.2012, 11:52
Re: [HELP]OnPlayerText Problem. - by TheBluec0de - 08.05.2012, 11:52
Re: [HELP]OnPlayerText Problem. - by JaKe Elite - 08.05.2012, 11:52
Re: [HELP]OnPlayerText Problem. - by 2KY - 08.05.2012, 11:55
Re: [HELP]OnPlayerText Problem. - by TheBluec0de - 08.05.2012, 12:06
Re: [HELP]OnPlayerText Problem. - by 2KY - 08.05.2012, 12:28

Forum Jump:


Users browsing this thread: 1 Guest(s)