help ingame chat not working - 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: help ingame chat not working (
/showthread.php?tid=494732)
help ingame chat not working -
Mckarlis - 14.02.2014
help ingame chat not working.
when i type something and when i press enter the text does not add to the chat
Re: help ingame chat not working -
Konstantinos - 14.02.2014
Returning 0 inside OnPlayerText prevents the text from being displayed at the chat. Post the callback so we'll be able to help you unless you can fix (since you now know the problem).
Re: help ingame chat not working -
Mckarlis - 14.02.2014
so what should it be like?
public OnPlayerText(playerid, text[])
{
new textstring[128];
format(textstring, sizeof(textstring), "(%i) %s", playerid, text);
SendPlayerMessageToAll(playerid, textstring);
return 0;
}
Re: help ingame chat not working -
Aerotactics - 14.02.2014
public OnPlayerText(playerid, text[])
{
new textstring[128];
format(textstring, sizeof(textstring), "(%i) %s", playerid, text);
SendPlayerMessageToAll(playerid, textstring);
return 1;
}
Re: help ingame chat not working -
Mckarlis - 14.02.2014
thanks
Re: help ingame chat not working -
Mckarlis - 14.02.2014
i put the 1 in return but that says only admins can talk