string
#1

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]; 
Reply
#2

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.
Reply
#3

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.
Reply
#4

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)