SA-MP Forums Archive
Player Chat continues - 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: Player Chat continues (/showthread.php?tid=126921)



Player Chat continues - Mini` - 11.02.2010

Hello,
I have seen this on LS-RP... And I found it really useful..
So I am asking you guys...
How would I make a chat continue onto a new line if it's too long?
Example:
Player1 PM's Player2 ((Hey this is an extremely long message and it's about to get cut off))
Player1 PM's Player2 ((here, see it got cut off and send in a seperate PM))





Re: Player Chat continues - [HiC]TheKiller - 11.02.2010

Use strlen and check if the string is too long for the chat box, I'm not sure the limit sorry.


Re: Player Chat continues - Miguel - 11.02.2010

Quote:
Originally Posted by [HiC
TheKiller ]
Use strlen and check if the string is too long for the chat box, I'm not sure the limit sorry.
I think it's 128 and you should know that the player's name counts too (-(MAX_PLAYER_NAME)):


Re: Player Chat continues - Blade_Cervetti - 17.02.2010

you should see a result[64] or something change the 64 to a higher number that helped me! :P