SA-MP Forums Archive
911 Dialog makes the server crash[+REP] - 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: 911 Dialog makes the server crash[+REP] (/showthread.php?tid=602569)



.. - Amit1998 - 09.03.2016

DELETE


Re: 911 Dialog makes the server crash[+REP] - saffierr - 09.03.2016

The only thing I can think of that it could be the CMD which uses this dialog, try re-searching if it's the cmd, I am sorry if it's not that.


Re: 911 Dialog makes the server crash[+REP] - Golden96 - 09.03.2016

It only does it when the input is a certain length? Do some debugging and figure out the length at which it crashes


Re: 911 Dialog makes the server crash[+REP] - ThatFag - 09.03.2016

nice im rp script sir haha noob stop using fake IMs script


Re: 911 Dialog makes the server crash[+REP] - Amit1998 - 09.03.2016

Quote:
Originally Posted by Golden96
Посмотреть сообщение
It only does it when the input is a certain length? Do some debugging and figure out the length at which it crashes
Quote:
Originally Posted by saffierr
Посмотреть сообщение
The only thing I can think of that it could be the CMD which uses this dialog, try re-searching if it's the cmd, I am sorry if it's not that.
It's not a certain length. It occurs when it exceeds a certain length. As the string must be extremely long, I find it merly impossible to find a certain length.


Re: 911 Dialog makes the server crash[+REP] - Golden96 - 09.03.2016

Well you need to max the inputtext to 128 characters anyway since you cannot SendClientMessage >128 characters so cap the inputtext to that and see if that fixes it.

ie

PHP код:
if(strlen(inputtext) > 128) return SendClientMessage(playerid, -1"blabla max 128 char");