Ignores the "maxlength" parameter causing possible crashes. - 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: Ignores the "maxlength" parameter causing possible crashes. (
/showthread.php?tid=617875)
Ignores the "maxlength" parameter causing possible crashes. -
MerryDeer - 27.09.2016
Hi,
https://sampforum.blast.hk/showthread.php?tid=591458
Here write about strins
Ignores the "maxlength" parameter causing possible crashes.
So without this include, that means where i use strins i have to write maxlenght? or this is old information?
Re: Ignores the "maxlength" parameter causing possible crashes. -
SickAttack - 27.09.2016
You don't have to use that include.
Just write sizeof(variable here).
Re: Ignores the "maxlength" parameter causing possible crashes. -
MerryDeer - 27.09.2016
Yes i don't use this include, but do i need to write sizeof it's make crash what i don't use sizeof?
Re: Ignores the "maxlength" parameter causing possible crashes. -
SickAttack - 27.09.2016
The wiki says it does that automatically, but you could create a hook, or just use the one in the include. I have used the function a lot, and everything went well. Sometimes it tells you to specify the maxlength if you haven't already.