Help - 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 (
/showthread.php?tid=354304)
Help -
RyanPetersons - 26.06.2012
Hello Friends , I am little bit trapped in chat .. whatever i write it appears two times in the chat (i.e twice chatting) and in my game mode "OnplayerText" has return 0 but when i replace it with 1 i get tripple chatting ..(i.e three times same message)
Thanks,
Regards,
Ryan_Petersons
Re: Help -
aRoach - 26.06.2012
Look in your others FilterScript and check if OnPlayerText returns false
Re: Help -
[MM]RoXoR[FS] - 26.06.2012
Show code
Re: Help -
RyanPetersons - 26.06.2012
pawn Код:
public OnPlayerText(playerid,text[])
{
return 0;
}
thats of gamemode
Re: Help -
.Wicked - 26.06.2012
pawn Код:
public OnPlayerText(playerid, text[])
{
return 1;
}
Should work.
Re: Help -
Neil. - 26.06.2012
Quote:
Originally Posted by .Wicked
pawn Код:
public OnPlayerText(playerid, text[]) { return 1; }
Should work.
|
Didn't you read?
Quote:
but when i replace it with 1 i get tripple chatting ..(i.e three times same message)
|
btw check your other fs's for the OnPlayerText callback
Re: Help -
RyanPetersons - 26.06.2012
There is no return 0; in all filterscripts
the return 0; is only in the gamemode at OnPlayerText
Re: Help -
JonnyDeadly - 26.06.2012
Make sure the other filter scripts return 1 as well as your game mode.