Max string size
#1

Hi.

I decided to make furniture system and i need large string size, because furnitures are saved to file like this:
ObjectidFloatFloat: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?
Reply
#2

You may find this link usefull, https://sampwiki.blast.hk/wiki/Limits
Reply
#3

Quote:
Originally Posted by pds2k12
Посмотреть сообщение
You may find this link usefull, https://sampwiki.blast.hk/wiki/Limits
It shows only on textdraws and dialogs, but i won't use it to show something to player, but only to create objects.
Reply
#4

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


Forum Jump:


Users browsing this thread: 2 Guest(s)