Loading/saving - 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: Loading/saving (
/showthread.php?tid=525312)
Loading/saving -
iBots - 11.07.2014
well,i am saving data in files for objects,i am using fwrite and ....,i wanna make it save 100 slots for each pack,it's a system that i have made,but how can i save them with few lines instead of saving them 1 by 1?
i tried to save them 1 by 1 it was compiling and showing something in the pawn compiler about data used and when i was running the server it wasnt working.
Re: Loading/saving -
Stanford - 11.07.2014
Please show us your code so we can help you.
Re: Loading/saving -
NewerthRoleplay - 11.07.2014
Quote:
Originally Posted by Stanford
Please show us your code so we can help you.
|
This, and what was the 'something' it showed in the compiler?
Re: Loading/saving -
iBots - 11.07.2014
well,in the saving system,i made 100 slots for each pack,and in the saving system i was saving them from slot id 1 to slot id 100 using:
pawn Код:
Packs[i][PackSlot][0] = strval(arrCoords[1]); // for example
Packs[i][PackSlot][1] = strval(arrCoords[2]); // for example 2, i made this 100 times
and loading them 1 by 1,but it showed me:
pawn Код:
Header size: 20324 bytes
Code size: 3518372 bytes
Data size: 14752928 bytes
Stack/heap size: 46000 bytes; estimated max. usage: unknown, due to recursion
Total requirements:18337624 bytes
and the gamemode didnt work anymore