Recursion
#1

Hey, I checked every line of gamemode but I did not find any recursion.

Code:
Header size:          18044 bytes
Code size:          1011168 bytes
Data size:          3277336 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 4322932 bytes
I am using global arrays like that.

Code:
new textstr[256];

new yazi[256],
	stryazi[256],
	adminSTR[256],
	PlayerSTR[256],
	query[512],
	dialog_msg[1024],
	global_str[354];

new klan_bquery[256],
	klan_query[128],
	klan_squery[64];
And here is my includes:

Code:
#include <a_samp>
#undef MAX_PLAYERS
#define MAX_PLAYERS	(100)

#include <a_mysql>
#include <a_http>
		   	     
#include <weapon-config>
#include <SKY>
#include <foreach>

#include <crashdetect>
#include <izcmd>
#include <sscanf2>
#include <streamer>
#include <mapandreas>
#include <progress2>
#include <weapondata>

#include <colors>
#include <gangzones>
#include <attachments>
Any ideas?
Reply
#2

I don't want to re-explain what they've said over here, Look at that thread, it might help you..
Reply
#3

I already saw this anything else?
Reply
#4

Did you actually read it, or did you simply think it was too hard?

Mauzen had the information you should be looking at.
Reply
#5

I read that nothing changes
Reply
#6

So did you do anything to fix it other than reading the thread?


Like, did you actually check your script, look at what you changed last, or anything?

C'mon, the more info you pass back the more likely someone will be enthused to help you regarding this...
Reply
#7

I have been scripting this game mode since 2013 I never thougth about optimization. I checked other copies they have same recursion thing. I checked every line three times and found nothing.
Reply
#8

Quote:
Originally Posted by Freedom.
View Post
I have been scripting this game mode since 2013 I never thougth about optimization.
So did you make it, or did you simply start editing it?

Quote:
Originally Posted by Freedom.
View Post
I checked other copies they have same recursion thing.
Other copies of _what_ exactly? Other versions of what you've made?

When did it start causing the trouble that you are facing? What did you do around the time that you started having this occur.

What were you trying to fix/create when you started having this problem?

Quote:
Originally Posted by Freedom.
View Post
I checked every line three times and found nothing.
What were you checking for?


Like, damn, I'm sure you're simply skipping the middle of that thread that's been linked to you, finding the last post and seeing it's not accessible, and thinking it's a dead end, where the middle of the thread is the important part in the first instance.


Does your code flow? Is it easy for you to step through whilst reading it? (These are some of the first things to look at when you look at optimisation and being able to debug your code...)
Reply
#9

Quote:
Originally Posted by Sew_Sumi
View Post
So did you make it, or did you simply start editing it?
Gamemode is made from scratch not editing.


Quote:
Originally Posted by Sew_Sumi
View Post
Other copies of _what_ exactly? Other versions of what you've made?
I made major changes sometimes that's all.

Quote:
Originally Posted by Sew_Sumi
View Post
When did it start causing the trouble that you are facing? What did you do around the time that you started having this occur.

What were you trying to fix/create when you started having this problem?
I never checked before so I did not know when this occur. I'll send you copy of gamemode.

Quote:
Originally Posted by Sew_Sumi
View Post
What were you checking for?


Like, damn, I'm sure you're simply skipping the middle of that thread that's been linked to you, finding the last post and seeing it's not accessible, and thinking it's a dead end, where the middle of the thread is the important part in the first instance.


Does your code flow? Is it easy for you to step through whilst reading it? (These are some of the first things to look at when you look at optimisation and being able to debug your code...)
I did see optimizion thread and applied nothing changed.

Look your pm.
Reply
#10

What is the problem?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)