Max string size - 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: Max string size (
/showthread.php?tid=476081)
Max string size -
iWhite - 16.11.2013
Hi.
I decided to make furniture system and i need large string size, because furnitures are saved to file like this:
ObjectidFloat
Float:yFloat:zNextObjectidFloat:nex tx... And i need large string to read it from file and create objects. So, what is max string size? Or maybe you have better ideas to save and load furnitures?
Re: Max string size - Patrick - 16.11.2013
You may find this link usefull, https://sampwiki.blast.hk/wiki/Limits
Re: Max string size -
iWhite - 16.11.2013
Quote:
Originally Posted by pds2k12
|
It shows only on textdraws and dialogs, but i won't use it to show something to player, but only to create objects.
Re: Max string size - Emmet_ - 16.11.2013
You shouldn't save data line to line, it's more efficient to save it with INI files:
https://sampforum.blast.hk/showthread.php?tid=175565
The max string size depends on the maximum amount of allocated memory on the stack (which is 16384 cells). Anyway, you shouldn't use over 512 cells.