Forum

> > CS2D > Scripts > Have you seen this error before?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Have you seen this error before?

6 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: Have you seen this error before?

EngiN33R
Moderator Off Offline

Zitieren
Something is wrong with your code - stack overflow, basically, means that most likely some function parses itself so many times the script can't withstand it and shuts down to prevent crash.

alt Re: Have you seen this error before?

Lee
Moderator Off Offline

Zitieren
If I'm reading this right

1
2
3
4
5
6
7
8
9
10
11
function tableToString(t, n, d)
	local s = ""
	if (n == nil) then n = 1 end
	if n<1 then n = 1 end
	if not d then d = " " end
	while (n <= #t) do
		s = s .. t[n] .. "".. d
		n = n + 1
	end
	return s -- <= line 79
end

this isn't a recursive call though so either the file was changed or maybe the stack overflowed from all of the variables... (not likely since we only pushed one extra object onto the stack which switches to at least 200 objects)

alt Re: Have you seen this error before?

Banaan
User Off Offline

Zitieren
You actually keep track of how many objects you use in your code?

Maybe he uses an older version of the code? I searched around a little, found some old code at assembla, but line 79 is an if statement there so it can't cause an overflow either.

alt Re: Have you seen this error before?

EngiN33R
Moderator Off Offline

Zitieren
Well, that's why I said
EngiN33R hat geschrieben
Something is wrong with your code

and not 'Something is wrong with Lee's code'/'something is wrong with the mod!'.

Most likely he modified the script and did something wrong.

alt Re: Have you seen this error before?

AimZ
User Off Offline

Zitieren
i'm trying to add Lag comp to amx and this happens after 1 kill, i didnt make the lag comp either just trying to figure out why its doing this.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht