SA-MP Forums Archive
OnPlayerText say twice - 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)
+--- Thread: OnPlayerText say twice (/showthread.php?tid=516724)



OnPlayerText say twice - Mey6155 - 01.06.2014

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[128];
    format(string,sizeof(string),"%s: %s",RemoveUnderScore(playerid),text);
    ProxDetector(15, playerid, string, COLOR_WHITE);
    return 1;
}
It says twice i want one time,.


Re: OnPlayerText say twice - Luis- - 01.06.2014

Return 0 instead 1.


Re: OnPlayerText say twice - Eth - 01.06.2014

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[128];
    format(string,sizeof(string),"%s: %s",RemoveUnderScore(playerid),text);
    ProxDetector(15, playerid, string, COLOR_WHITE);
    return 0;
}