SA-MP Forums Archive
I have a doubt - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I have a doubt (/showthread.php?tid=236030)



I have a doubt - Ironboy - 06.03.2011

I have doubt about this
pawn Code:
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

Header size:           4264 bytes
Code size:           299008 bytes
Data size:           305836 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements:  625492 bytes
Why it is showing like this?
I just wanted to show like this
pawn Code:
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase



Re: I have a doubt - Danny - 06.03.2011

Probably you have crossed one of those limits, or you're about to cross one.


Re: I have a doubt - Ironboy - 06.03.2011

i dont want to show that ,i just wanted to show like this
pawn Code:
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
how to do that?


Re: I have a doubt - Stigg - 06.03.2011

Quote:
Originally Posted by Ironboy
View Post
i dont want to show that ,i just wanted to show like this
pawn Code:
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
how to do that?
Ignore. Made a mistake.


Re: I have a doubt - Ironboy - 06.03.2011

so how i should change it?
plz tell me


Re: I have a doubt - xir - 06.03.2011

I think you need to optimize your code, I think you have big string sizes(I read somewhere, but I am not sure, please correct me if im wrong)


Re: I have a doubt - Ironboy - 06.03.2011

optimize means?


Re: I have a doubt - xir - 06.03.2011

https://sampforum.blast.hk/showthread.php?tid=57018
https://sampforum.blast.hk/showthread.php?tid=55261

Again, I am not sure.

My old gm had like this, all big string sizes using [256] all the way, and using strock and strcmp.
But after I changed converted my gm to zcmd/sscanf, also using [128] cells and lower.
Then it showed this
pawn Code:
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
But maybe some scripters like Y_Less can confirm this?


Re: I have a doubt - alpha500delta - 06.03.2011

That means you're probably using to much cells
Bes thing to do is optimizing your code and removing unwanted cells (Links above me)


Re: I have a doubt - admantis - 06.03.2011

I've seen your codes and your strings are always sized 256. Resize them to 128 or needed size.


Re: I have a doubt - Mauzen - 06.03.2011

Quote:

unknown, due to recursion

You are using a recursive function, pawn cant calculate the needed stack of it and so shows this stuff.
A recursive function is a function that calls itself, doesnt mean anything bad if you are using this, it even a nice way to script in some cases.