SA-MP Forums Archive
[Solved]Can't write messages! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Solved]Can't write messages! (/showthread.php?tid=81328)



[Solved]Can't write messages! - cigo - 09.06.2009

i can't write any messages in my server, for example, i write ''hello'' and nothing happens, but commands work perfectly!

what could be wrong?


Re: Can't write messages! - miokie - 09.06.2009

Does your OnPlayerText Public Return 0?


Re: Can't write messages! - Think - 09.06.2009

how do you mean, cant write messages and 'commands works fine' maybe cuz you did a fault in your script,

Quote:
Originally Posted by Miokie*
Does your OnPlayerText Public Return 0?
and did edit te public?

show teh code.


Re: Can't write messages! - cigo - 09.06.2009

when i type message, example, ''hi'' in chatbox, nothing happens - my message is not showing in chat!


Re: Can't write messages! - miokie - 09.06.2009

Post Your:
pawn Код:
public OnPlayerText
and we can try and fix the problem.


Re: Can't write messages! - cigo - 09.06.2009

my gm code:

http://pastebin.com/m300b70e4


Re: Can't write messages! - MenaceX^ - 09.06.2009

The call back OnPlayerText does not exist in your gamemode.


Re: Can't write messages! - cigo - 09.06.2009

i have never had problems like this... how can i solve this? adding that callback?


Re: Can't write messages! - miokie - 09.06.2009

if you don't know how to make it exist add this to your GM:
pawn Код:
public OnPlayerText(playerid, text[])
{
return 1;
}



Re: Can't write messages! - cigo - 09.06.2009

thank you!