estimated max. usage: unknown, due to recursion
#2

The message appears if the compiler thinks that your scripts could case a heap / stack collision
That happens if one of your function uses to much local memory

In your case the compiler couldn't calculate it because your function is recursive like
pawn Код:
stock pCountdown(count) if(count> 0) printf("%d", count), pCountdown(--count); else print("Start");
You should change that code to a for / while loop

Its not something to worry about if you know what you are doing (many people don't)
But still you should take a look inside the code and check if you can reduce the stack usage (local variables) or make it non recursive

If a real collision happens (while running the script) you will get an error message in your samp-server console

Alternative you can increase the stack size but thats is not a solution only a workaround
Reply


Messages In This Thread
estimated max. usage: unknown, due to recursion - by MW - 21.06.2015, 13:57
AW: estimated max. usage: unknown, due to recursion - by Nero_3D - 21.06.2015, 14:11
Re: estimated max. usage: unknown, due to recursion - by MW - 21.06.2015, 14:24
AW: estimated max. usage: unknown, due to recursion - by Nero_3D - 21.06.2015, 21:35

Forum Jump:


Users browsing this thread: 1 Guest(s)