Eroare
#1

Vreau să fa comanda /me in genul acesta

Nume_Prenume merge la bar incet si calm, pasind greoi in timp ce mananca un san...
...dwich delicios ((Nume_Prenume)

Код:
SendCustomPlayerMessage(playerid, color, text[])
{
    if(strlen(text) > 112)
    {
        new text1[112],
            text2[112],
            pos = strfind(text," "false,102)
			string[224];

        strmid(text1, text, 0, pos);
        strmid(text2, text, pos, strlen(text));

        format(string, sizeof(string), "%s...", text1);
        SendClientMessage(playerid, color, string);

        format(string, sizeof(string), "...%s", text2);
        SendClientMessage(playerid, color, string);
    }
    else SendClientMessage(playerid, color, text);
}

CMD:me(playerid, params[])
{
    new string[128], action[128];
    if(sscanf(params, "s[128]", action))
    {
        SendClientMessage(playerid, -1, ""chat" /me [action]");
        return 1;
    }
    else
    {
        format(string, sizeof(string), "* %s %s", PlayerName(playerid), action);
        ProxDetector(30, playerid, string, COLOR_PURPLE);
    }
    return 1;
}
Ce este gresit de nu imparte un chat in 2 daca este prea lung?
warning 203: symbol is never used: "SendCustomPlayerMessage"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)