SA-MP Forums Archive
string - 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: string (/showthread.php?tid=648160)



string - jasperschellekens - 16.01.2018

so the max for strings is 1024 right. i use 20 options in a dialog but it only shows till 14 while it is already set on 1024. is there a way to use more then 1024?

PHP код:
new string[1024]; 



Re: string - Abagail - 16.01.2018

There's no certain string length IIRC. Some functions may crash with ridiculously large strings though, the limit on the wiki (if that's where you get this from) is merely how many a textdraw can show.

Remember larger strings means more memory and a longer compile time, so only go large if you need it.


Re: string - Daveosss - 16.01.2018

Well, my in-game map editor script uses a string with 2000 cells and is able to show 200 options (about 1200+ characters) in a dialog, so try increasing that number.


Re: string - MP2 - 17.01.2018

The maximum string length for dialog body text is 4096 characters.

https://sampwiki.blast.hk/wiki/Limits