SA-MP Forums Archive
Removing Chat Limiter - 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: Removing Chat Limiter (/showthread.php?tid=165751)



Removing Chat Limiter - Ritchie999 - 06.08.2010

I got a script here but theres a message limit so you can only type a certain amount of characters
I'm wondering if anyone knows what to delete to remove the message limit?

The script is a GF edit called Goodfella's


Re: Removing Chat Limiter - JaTochNietDan - 06.08.2010

Look for something checking the length of the text parameter in the callback OnPlayerText.

Something like

pawn Код:
if(strlen(text) > 100)
Is probably what they're using to block text over a certain length. Just check for any mention of strlen in OnPlayerText and report back. Or better yet, post the entire OnPlayerText callback here if you can't figure it out.


Re: Removing Chat Limiter - Ritchie999 - 07.08.2010

The OnPlayerText is 1264 lines long so copying and pasting would be out of the question


Re: Removing Chat Limiter - DiddyBop - 07.08.2010

paste OnPlayerText.... 1264 isnt much to find the problem cause most of it is other bullshit.


Re: Removing Chat Limiter - JaTochNietDan - 07.08.2010

Indeed that many lines is too big really for a forum post.

Paste it in www.pastebin.com and post the link to it here, then we can look at it


Re: Removing Chat Limiter - Ritchie999 - 07.08.2010

http://pastebin.com/MH1QEWdK


Re: Removing Chat Limiter - DiddyBop - 07.08.2010

I dont see the block anywhere, maybe JaTochNietDan can


Re: Removing Chat Limiter - JaTochNietDan - 07.08.2010

Well I couldn't see anything that's checking the character limit specifically either. Although it might have something to do with

pawn Код:
if(realchat)
But that's the only mention of that variable in the snippet you posted.


Re: Removing Chat Limiter - Ritchie999 - 07.08.2010

This is the only "realchat" thing i could find.. its just this and the one in OnPlayerText

new realchat = 1;


Re: Removing Chat Limiter - JaTochNietDan - 07.08.2010

Quote:
Originally Posted by Ritchie999
Посмотреть сообщение
This is the only "realchat" thing i could find.. its just this and the one in OnPlayerText

new realchat = 1;
What's the message that comes up when you type too many characters? If any?