Loading/saving
#1

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

Please show us your code so we can help you.
Reply
#3

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)