SA-MP Forums Archive
RP chat help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: RP chat help (/showthread.php?tid=159271)



RP chat help - bartje01 - 12.07.2010

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


Re: RP chat help - MikkelGutten - 12.07.2010

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;"