Forum

> > CS2D > Scripts > Lua Error Npc lua
Forums overviewCS2D overview Scripts overviewLog in to reply

English Lua Error Npc lua

3 replies
To the start Previous 1 Next To the start

old Lua Error Npc lua

eduxd0707
BANNED Off Offline

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

help? ;3

Admin/mod comment

Use tag more for long codes /user useigor

old Re: Lua Error Npc lua

Rainoth
Moderator Off Offline

Quote
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.

old another erro

eduxd0707
BANNED Off Offline

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

old Re: Lua Error Npc lua

EP
User Off Offline

Quote
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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview