Can you check it, it says something like "lua error: "end" expected to close "if" near to "elseif"."
Code:
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
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
NPCs[14].func = function(npc, id, words, state) 	if words == "hi" then 		NPCspeak(npc, "The toll is $10. Do you want to cross this bridge?") 		NPCspeak(npc, "You also have to be at least level 10.") 		PLAYERS[id].tmp.npcstate = {npc, 1} 	elseif contains(words, "bye") then 		NPCspeak(npc, "Not crossing?") 		PLAYERS[id].tmp.npcstate = nil 	elseif state == 1 then 		if contains(words, "yes") then 		if level(id >10) then 		else 		NPCspeak(npc, "Your level isn't high enough!") 			if addmoney(id, -10) then 				message(id, "You have lost $10.", "255255255") 				parse("setpos " .. id .. " 2288 352") 			else 				NPCspeak(npc, "No money, no crossing.") 			end 		elseif contains(words, "no") then 			NPCspeak(npc, "Not crossing?") 			PLAYERS[id].tmp.npcstate = nil 			end 			end 		end 		end 	end end end