SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 09/07/2017, 11:54 PM   #1
Freedom.
Big Clucker
 
Join Date: Oct 2012
Posts: 126
Reputation: 12
Default Recursion

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?
Freedom. is offline   Reply With Quote
Old 10/07/2017, 12:02 AM   #2
JasonRiggs
Gangsta
 
Join Date: Jul 2016
Location: My bedroom.
Posts: 851
Reputation: 52
Default Re: Recursion

I don't want to re-explain what they've said over here, Look at that thread, it might help you..
__________________
JasonRiggs is offline   Reply With Quote
Old 10/07/2017, 12:18 AM   #3
Freedom.
Big Clucker
 
Join Date: Oct 2012
Posts: 126
Reputation: 12
Default Re: Recursion

I already saw this anything else?
Freedom. is offline   Reply With Quote
Old 10/07/2017, 01:05 AM   #4
Sew_Sumi
Banned
 
Join Date: Jun 2008
Location: Azerbaijan
Posts: 6,242
Reputation: 525
Default Re: Recursion

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

Mauzen had the information you should be looking at.
Sew_Sumi is offline   Reply With Quote
Old 10/07/2017, 07:47 AM   #5
Freedom.
Big Clucker
 
Join Date: Oct 2012
Posts: 126
Reputation: 12
Default Re: Recursion

I read that nothing changes
Freedom. is offline   Reply With Quote
Old 10/07/2017, 08:46 AM   #6
Sew_Sumi
Banned
 
Join Date: Jun 2008
Location: Azerbaijan
Posts: 6,242
Reputation: 525
Default Re: Recursion

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...
Sew_Sumi is offline   Reply With Quote
Old 10/07/2017, 09:25 AM   #7
Freedom.
Big Clucker
 
Join Date: Oct 2012
Posts: 126
Reputation: 12
Default Re: Recursion

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.
Freedom. is offline   Reply With Quote
Old 10/07/2017, 10:19 AM   #8
Sew_Sumi
Banned
 
Join Date: Jun 2008
Location: Azerbaijan
Posts: 6,242
Reputation: 525
Default Re: Recursion

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...)
Sew_Sumi is offline   Reply With Quote
Old 10/07/2017, 11:06 AM   #9
Freedom.
Big Clucker
 
Join Date: Oct 2012
Posts: 126
Reputation: 12
Default Re: Recursion

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.
Freedom. is offline   Reply With Quote
Old 10/07/2017, 01:07 PM   #10
OneDay
Huge Clucker
 
Join Date: Sep 2015
Posts: 294
Reputation: 139
Default Re: Recursion

What is the problem?
OneDay is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recursion code Parlianment Scripting Help 4 27/06/2015 10:10 AM
Recursion problem CoaPsyFactor Scripting Help 3 11/01/2015 10:48 PM
[Ajuda] unknown, due to recursion ForT Português/Portuguese 5 12/10/2012 02:57 PM
unknown, due to recursion Mellnik Scripting Help 2 05/08/2012 10:33 AM
Tracing Recursion help toyota Help Archive 1 23/07/2011 02:04 PM


All times are GMT. The time now is 08:25 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.