SA-MP Forums Archive
load data - 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: load data (/showthread.php?tid=525338)



load data - iBots - 11.07.2014

well,in the saving/loading 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 Код:
pawn Code:
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 Код:
pawn Code:
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,error are on the 100 loading lines


Re: load data - BroZeus - 11.07.2014

use #pragma dynamic value
for example put this at top of your script
#pragma dynamic 300


Re: load data - iBots - 11.07.2014

what will it do?


Re: load data - BroZeus - 11.07.2014

its the amount of emory u need for script
the error u are getting is because of less avaliable memorey paste this under ur include lines--
#pragma dynamic 10000
if it do not work increase the number