I have an errors.
Lua compiler: here
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
_load = {} function addhook(name,func) 	if name == 'load' then 		table.insert(_load,func) 	end end function inithook(name,...) 	t = {...} 	if name == 'load' then 		if _load[1] then 			for _, i in pairs(_load) do 				local f = loadstring(i..'('..table.concat(t,',')..')') 				f() 			end 		end 	end end addhook('load','onload') function onload(id,l) 	print(id..': '..l) end function start() 	local id = 1 	inithook('load',id,'lol') end start()