OnPlayerText
#1

hi guys

i make this

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof (name));
    format(string, sizeof(string), "%s says: %s", name, text);
    SendAtHim(playerid, 10, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
    Log("logs/chat.log", string);
    return 1;
}

Reply
#2

Код:
public OnPlayerText(playerid, text[])
{
    new string[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof (name));
    format(string, sizeof(string), "%s says: %s", name, text);
    SendAtHim(playerid, 10, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
    Log("logs/chat.log", string);
    return 0;
}
Reply
#3

thank you !!

return 0; X_X
Reply
#4

Nicely done ! Thanks mate !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)