Player Chat continues
#1

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))


Reply
#2

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

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)):
Reply
#4

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


Forum Jump:


Users browsing this thread: 2 Guest(s)