Chat problem. - 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: Chat problem. (
/showthread.php?tid=579358)
Chat problem. -
DeathFire - 26.06.2015
When I type, strangely nothing appears. What's the problem?
Re: Chat problem. -
baba1234 - 26.06.2015
mybe yours onplayertext is returning 0 chack that out.
Re: Chat problem. -
ZaBraNjeNi - 26.06.2015
//deleted
Re: Chat problem. -
TheSnaKe - 26.06.2015
Quote:
Originally Posted by DeathFire
When I type, strangely nothing appears. What's the problem?
|
Shall we guess your OnPlayerText?
Re: Chat problem. -
DeathFire - 26.06.2015
It always has been working, only today it got like this :/
EDIT: Strangely, this is what I have.
Код:
public OnPlayerText(playerid, text[])
{
Re: Chat problem. -
DeathFire - 26.06.2015
please help! It's urgent!
Re: Chat problem. -
baba1234 - 26.06.2015
It should be like this if u dont have proxdetector for rp chat!
Код:
public OnPlayerText(playerid, text[])
{
new pText[144];
format(pText, sizeof (pText), "(%d) %s", playerid, text);
SendPlayerMessageToAll(playerid, pText);
return 0; // ignore the default text and send the custom one
}
Re: Chat problem. -
DeathFire - 26.06.2015
Quote:
Originally Posted by baba1234
It should be like this if u dont have proxdetector for rp chat!
Код:
public OnPlayerText(playerid, text[])
{
new pText[144];
format(pText, sizeof (pText), "(%d) %s", playerid, text);
SendPlayerMessageToAll(playerid, pText);
return 0; // ignore the default text and send the custom one
}
|
I'll try. Thanks
Re: Chat problem. -
iTakelot - 26.06.2015
PHP код:
// This callback uses the chat-box
public OnPlayerText(playerid, text[])
{
new GlobalChat[128], NomoDoFilho[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof (name));
format(GlobalChat, sizeof (GlobalChat), "%s {00FFFF}(ID:%d):{FFFFFF} %s", NomoDoFilho, playerid, text);
SendClientMessageToAll(GetPlayerColor(playerid),GlobalChat);
return 0;
}