help ingame chat not working
#1

help ingame chat not working.
when i type something and when i press enter the text does not add to the chat
Reply
#2

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).
Reply
#3

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;
}
Reply
#4

public OnPlayerText(playerid, text[])
{
new textstring[128];
format(textstring, sizeof(textstring), "(%i) %s", playerid, text);
SendPlayerMessageToAll(playerid, textstring);
return 1;
}
Reply
#5

thanks
Reply
#6

i put the 1 in return but that says only admins can talk
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)