RP chat help
#1

Hey guys. I want to make the main chat roleplay chat.

pawn Код:
public OnPlayerText(playerid, text[])
{
new string[256];
new sendername[MAX_PLAYER_NAME];
format(string, sizeof(string), "%s Says: %s", sendername, text);
                ProxDetector(20.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
    return 1;
}
I have that. But now I see the chat 2 times.

first: playername says: blabla
and also playername: blabla.

How to fix this? The non Rp chat is still here
Reply
#2

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[256];
    new sendername[MAX_PLAYER_NAME];
    format(string, sizeof(string), "%s Says: %s", sendername, text);
    ProxDetector(20.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
    return 0;
}
Make it "return 0;"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)