Chat not working
#1

In my server chat not working,
PHP код:
OnPlayerText
{
rerurn 1;

Why?
Reply
#2

pawn Код:
public OnPlayerText(playerid, text[])
{
    return 1;
}
Reply
#3

nothing
Reply
#4

I have the same problem too before some months,try to remove the includes and plugins that you don't use on your script,sorry for my bad english.
Reply
#5

nothing
Reply
#6

help
Reply
#7

pawn Код:
public OnPlayerText ( playerid, text [ ] )
{
    return false;
}
Reply
#8

Quote:
Originally Posted by RaZVaN ^ xD
Посмотреть сообщение
pawn Код:
public OnPlayerText ( playerid, text [ ] )
{
    return false;
}
You might want to check https://sampwiki.blast.hk/wiki/OnPlayerText before posting.
Returning 0 in this callback will stop the text from being sent


OT: Seems like you're using a FilterScript/Include, which has OnPlayerText redefined somewhere and chatting disabled. Open up each and every of these scripts, press CTRL+F and look for "OnPlayerText". Good luck in your search
Reply
#9

Don't see the problem.
Reply
#10

Quote:
Originally Posted by Roperr
Посмотреть сообщение
[..]
Returning 0 in this callback will stop the text from being sent
[..]
The *default text*, although it'll send the custom text.

Код:
public OnPlayerText(playerid, text[])
{
    new textv2[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof (name));
    format(textv2, sizeof (textv2), "%d >> %s: %s", playerid, name, text);
    SendPlayerMessageToAll(playerid, textv2);
    return 0; // ignore the default text and send the custom one
}
The easier way to test it is to use a blank gamemode and check if it works or not.

__

If it does, then use it on your gamemode, if it doesn't work the script will be messed up with an include or Filterscript.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)