Posts: 729
Threads: 66
Joined: Jun 2013
help ingame chat not working.
when i type something and when i press enter the text does not add to the chat
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
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).
Posts: 729
Threads: 66
Joined: Jun 2013
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;
}
Posts: 1,079
Threads: 199
Joined: Jun 2013
Reputation:
0
public OnPlayerText(playerid, text[])
{
new textstring[128];
format(textstring, sizeof(textstring), "(%i) %s", playerid, text);
SendPlayerMessageToAll(playerid, textstring);
return 1;
}
Posts: 729
Threads: 66
Joined: Jun 2013
Posts: 729
Threads: 66
Joined: Jun 2013
i put the 1 in return but that says only admins can talk