A chunk of the script:
Spoiler
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
elseif cmd =="!a" then 				if rp_Adminlevel[id] >= arrest_lv then 					local pl = tonumber(p[2]) 					local cell = tonumber(p[3]) 					if pl ~= nil then 						if player(pl,"exists") then 							if cell == 1 then 								parse("setpos "..pl.." "..Config.AP[1][1].." "..Config.AP[1][1]) parse("killplayer "..pl..) 							elseif cell == 2 then 								parse("setpos "..pl.." "..Config.AP[2][1].." "..Config.AP[2][2]) parse("killplayer "..pl..) 							elseif cell == 3 then 								parse("setpos "..pl.." "..Config.AP[3][1].." "..Config.AP[4][2]) parse("killplayer "..pl..)	 							elseif cell == 4 then 								parse("setpos "..pl.." "..Config.AP[4][1].." "..Config.AP[5][2]) parse("killplayer "..pl..) 							elseif cell == 5 then 								parse("setpos "..pl.." "..Config.AP[5][1].." "..Config.AP[5][2]) parse("killplayer "..pl..)	 							elseif cell == 6 then 								parse("setpos "..pl.." "..Config.AP[6][1].." "..Config.AP[6][2]) parse("killplayer "..pl..)		 							end 							rp_arrest[pl]=true 						end 					end
The errors:
Spoiler
1
2
3
4
5
2
3
4
5
LUA ERROR: sys/lua/IF/sys/functions.lua:290: unexpected symbol near ')' -> [C]: in function 'dofile' -> sys/lua/IF/roleplay.lua:6: in main chunk -> [C]: in function 'dofile' -> sys/lua/server.lua:40: in main chunk
edited 1×, last 03.08.15 02:11:45 pm