SAMP 0.3D TextDraw Limit (Text Limit) - 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: SAMP 0.3D TextDraw Limit (Text Limit) (
/showthread.php?tid=327590)
SAMP 0.3D TextDraw Limit (Text Limit) -
Grimrandomer - 21.03.2012
https://sampwiki.blast.hk/wiki/Limits says the limit is 1024
But the game crashes when i use a string of size 1024, any help?
Thanks, Grim
Re: SAMP 0.3D TextDraw Limit (Text Limit) -
Joshb93 - 21.03.2012
There is really no need to have a string of that size. Ive never gone over 256, and i rarely use 256, i mostly use 128. Unless its going to be a string of small value, such as a faction name or something.
Re: SAMP 0.3D TextDraw Limit (Text Limit) -
Grimrandomer - 21.03.2012
I used a string of 700, no crash
Im doing a race laeaderboar you see, 10 racers (50 characters a line) so a big number is needed.
Thanks anyway
Re: SAMP 0.3D TextDraw Limit (Text Limit) -
Joshb93 - 21.03.2012
Quote:
Originally Posted by Grimrandomer
I used a string of 700, no crash
Im doing a race laeaderboar you see, 10 racers (50 characters a line) so a big number is needed.
Thanks anyway 
|
Well, do the math. 10 racers, 50 chars a line, use 501 as string size.
* The reason i said 501, is because everytime i use an exact string size, say i am created a string with 5 characters, and i set the string size to 5, only the first 4 characters show up in the string, so i always set it +1 higher.