SA-MP Forums Archive
[Ajuda] ї Duvida ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] ї Duvida ? (/showthread.php?tid=597207)



ї Duvida ? - HatedS - 28.12.2015

Fui jogar com uns amigos na GM "bare" que vem na pasta do samp server, e quando digitavamos algo no chat a mesma mensagem aparecia 4 vezes repetida e os outros nгo viam a mensagem , fui testar sу comigo on no servidor e o chat funcionou, sу buga com mais de 1 player no servidor

- Q que pode ter causado isso ??


Re: ї Duvida ? - EditPawn - 28.12.2015

O problema provavelmente possa estar na callback OnPlayerText, essa callback й chamada quando o jogador digita algo.


Re: ї Duvida ? - HatedS - 28.12.2015

Quote:
Originally Posted by EditPawn
View Post
O problema provavelmente possa estar na callback OnPlayerText, essa callback й chamada quando o jogador digita algo.
pawn Code:
public OnPlayerText(playerid, text[])
{
    return 0;
}
nгo tem nada


Re: ї Duvida ? - Larceny - 28.12.2015

https://sampwiki.blast.hk/wiki/OnPlayerText
Returning 0 in this callback will stop the text from being sent to all players.