And I don't get how the table has anything to do with it. Sorry
![](img/smiles/sad.gif)
function toTable(text,delimiter) 	local buff = {} --Here we make our table 	delimiter = delimiter or " " --If there is no 2nd parameter, we will use whitespace 	delimiter = "[^"..delimiter.."]+" 	for w in string.gmatch(text,delimiter) do--For everytime lua finds our token in the string 		table.insert(buff,w)--We put the word in our table 	end 	return buff --And we return the table end
addhook("parse","command_parse") function command_parse(text) 	local splitted = toTable(text) 	if splitted[1] == !equip then 		parse("equip "..splitted[2].." "..splitted[3]) 	end end
function totable(t,match) 	local cmd = {} 	if not match then match = "[^%s]+" end 	for word in string.gmatch(t, match) do 		table.insert(cmd, word) 	end 	return cmd end addhook("parse","debt_parse") function debt_parse(cm) 	local parses = totable(cm) 	local cmd = tostring(parses[1]) 	local id = tonumber(parses[2]) 	local v = tonumber(parses[3]) 	if (cmd=="!equip")	then -- !equip is the command 		if (id ~= nil and v ~= nil) then -- Check value nil 			if (player(id,"exists")) then -- check if player exist 				parse("equip "..id.." "..v) -- give to the player that weapon 			end 		end 	return 2 -- not see "Error unknown command". 	end return 0 end
function Random(id) local Randomer = 1 if (id == 1) then bla bla bla end end if (Randomer == 2)then print ("Hi") else print("Bye") end
function none(a,b,c) 	local val end
function none() 	if not val then 		local val = 1 	end 	if not val then print("local does not exist!") end --"val" is equal nil end none()
parse("setmoney "..id.." "..(player(id,"money")-400)) parse("equip "..id.." 51")
addhook("use","weaponshop") function use(id,event,data,x,y) 	if (even==100) then 		if (x==trigger x in here) and (y==trigger y in here) then 			if player(id,"money")>=400 then 				parse("equip "..id.." 51") 				parse("setmoney "..id.." "..player(id,"money")-400) 			else 				msg2(id,"Not enough money!@C") 			end 	end end
addhook("move","pos") function pos(id,x,y) 	parse('hudtxt2 '..id..' 100 "Tile Position: X: '..player(id,"tilex")..' Y: '..player(id,"tiley")..'" 13 145') end
if (x==trigger x in here) and (y==trigger y in here) then