Forum

> > CS2D > Scripts > Lua Error Npc lua
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Lua Error Npc lua

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Lua Error Npc lua

eduxd0707
BANNED Off Offline

Zitieren
LUA ERROR: sys/lua/npc systen.lua:59: '=' expected near 'if'
Code >

help? ;3

Admin/Mod Kommentar

Use tag more for long codes /user useigor

alt Re: Lua Error Npc lua

Rainoth
Moderator Off Offline

Zitieren
Line 58
1
endnpc
is
1
end
I believe.

Always check line before and after, if you can't find the error in given line.

alt another erro

eduxd0707
BANNED Off Offline

Zitieren
thx
now I have another problem
LUA ERROR: sys/lua/npc systen.lua:1: attempt to call global 'initArray' (a nil
Code >

alt Re: Lua Error Npc lua

EP
User Off Offline

Zitieren
you did not set the initArray function, here it's
1
2
3
4
5
6
7
function initArray(m)
	local t = {}
	for i = 1,m do
		t[i] = 0
	end
	return t
end
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht