English Lua Error Npc lua

3 replies
Goto Page
To the start Previous 1 Next To the start
16.10.13 01:37:54 pm
Up
eduxd0707
BANNED
Offline Off
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
16.10.13 01:46:19 pm
Up
Rainoth
Moderator
Offline Off
Line 58
Code:
1
endnpc

is
Code:
1
end

I believe.

Always check line before and after, if you can't find the error in given line.
16.10.13 01:59:28 pm
Up
eduxd0707
BANNED
Offline Off
thx
now I have another problem
LUA ERROR: sys/lua/npc systen.lua:1: attempt to call global 'initArray' (a nil
Code >
16.10.13 02:33:51 pm
Up
EP
User
Offline Off
you did not set the initArray function, here it's
Code:
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