PDA

View Full Version : Ignores the "maxlength" parameter causing possible crashes.


MerryDeer
27/09/2016, 06:26 PM
Hi,

http://forum.sa-mp.com/showthread.php?t=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?

SickAttack
27/09/2016, 06:30 PM
You don't have to use that include.

Just write sizeof(variable here).

MerryDeer
27/09/2016, 06:39 PM
Yes i don't use this include, but do i need to write sizeof it's make crash what i don't use sizeof?

SickAttack
27/09/2016, 06:43 PM
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.