Posts: 2,857
Threads: 62
Joined: Dec 2010
Reputation:
0
You just have a large script or big arrays, nothing to worry about.
Posts: 6,129
Threads: 36
Joined: Jan 2009
A global string variable, based on my recent experience.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
That's what I'm using. I just lowered about 10 global string variables from 1000~ to 1, and still got the error. I haven't added new variables since I didn't have the message so what's going on? Is it because I upgraded to R5? Can't really see how.
Posts: 631
Threads: 58
Joined: Jun 2010
Reputation:
0
It's not an error, since PAWN is an embedded language its to help programmers (not specifically samp people) to know if their hardware will be able to actually fit the program and run it. I had this too before when i was messing around with the pragma that limits the ram usage for the .amx and stuff like that. The pawn language guide has something thats related to this in it.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
I'm pretty sure I haven't got a recurring function, because I added one line to my script then compiled, then that warning appeared when I compiled.
If I do have a recurring function, how do I fix it? My script is tens of thousands of lines long.
Posts: 3,488
Threads: 16
Joined: Jun 2007
Reputation:
0
This warning usually comes when you use big (or many) local strings created with new.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
I've removed some global variables, and it's gone down a tiny bit to:
Header size: 8676 bytes
Code size: 1426852 bytes
Data size: 1683752 bytes
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 3135664 bytes
How much more do I need to remove?
Posts: 3,488
Threads: 16
Joined: Jun 2007
Reputation:
0
Make some LOCAL strings smaller.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
I don't have many local strings. I have about 10 global strings.
These are my main global strings:
new string[2000]; //Basic strings
new string2[128]; //other strings
new file[64]; //Files
new telestring[1753]; // Teleport dialog list
new itelestring[1900]; // Teleport dialog list
new querystring[1280]; // mySQL queries
I know some seem huge, but it's necessary.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
So how many local variables do I need to remove?
Posts: 2,856
Threads: 6
Joined: Jun 2007
Reputation:
0
The count doesnt matter, the size does, just change all local variables bigger than 4000 to global ones
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
The biggest local variable I have is like 500, for mySQL results.
Posts: 2,856
Threads: 6
Joined: Jun 2007
Reputation:
0
Than the last possible reason, you use the debug option for the compiler (-d2 or -d3)
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
Can you eleborate? What's -d3 and -d3?