samp Chat probleme - 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: samp Chat probleme (
/showthread.php?tid=521214)
samp Chat probleme -
mehdi171996 - 22.06.2014
hello guys i have a big probleme in my server the probleme is the chat is bugged i mean no one can talk another player and if they type someting it dosen't show in chat plz help




Re: samp Chat probleme -
Dr.Einstein - 22.06.2014
Show us what's in the
OnPlayerText callbal.
Re : Re: samp Chat probleme -
mehdi171996 - 22.06.2014
Quote:
Originally Posted by Dr.Einstein
Show us what's in the OnPlayerText callbal.
|
there is nothing in public OnPlayerText
public OnPlayerText(playerid, text[])
{
return 1;
}
Re : samp Chat probleme -
saloun - 22.06.2014
Replace it with
Quote:
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
}
|
https://sampwiki.blast.hk/wiki/OnPlayerText
Re : samp Chat probleme -
mehdi171996 - 22.06.2014
didn't work same probleme
Re: samp Chat probleme -
ScripteRNaBEEL - 22.06.2014
try this
Код:
public OnPlayerText(playerid, text[])
{
if(PlayerInfo[playerid][Level] >= 0) {
new String[256];
format(String, 256, "[%d]: %s", playerid, text);
SendPlayerMessageToAll(playerid,String);
return 0;// return 0 !!!! otherwise you get a double chat message
}
return 1;
}
Re : Re: samp Chat probleme -
mehdi171996 - 24.06.2014
Quote:
Originally Posted by ScripteRNaBEEL
try this
Код:
public OnPlayerText(playerid, text[])
{
if(PlayerInfo[playerid][Level] >= 0) {
new String[256];
format(String, 256, "[%d]: %s", playerid, text);
SendPlayerMessageToAll(playerid,String);
return 0;// return 0 !!!! otherwise you get a double chat message
}
return 1;
}
|
Dosen't Work Plz Help
Re: samp Chat probleme -
diego200052 - 24.06.2014
Try this:
pawn Код:
public OnPlayerText(playerid, text[])
{
new string[400];
format(string, sizeof(string), "{FFFFFF}%d: %s",playerid,text);
ProxDetector(90.0, playerid, string,COLOR_YELLOWGREEN,COLOR_YELLOWGREEN,COLOR_YELLOWGREEN,COLOR_YELLOWGREEN,COLOR_YELLOWGREEN);
}
return 1;
}
Re : samp Chat probleme -
mehdi171996 - 25.06.2014
Guys i think that this probleme is in my adminscript cuz ive deleted this scripts and runned the server and the chat looks ok
ive tried to search onPlayer text but i didn't found it