Posted 11 March 2012 - 08:50 PM
This function refuses to work. Any ideas?
function delete(x,y)
local tmp1=""
local tmp2=""
local base=text[y]
for i=1, x-1, 1 do
tmp1=tmp1..string.sub(base,i,i)
end
for j=x+1, string.len(base), 1 do
tmp2=tmp2..string.sub(base,j,j)
end
text[y]=tmp1..tmp2
return true
end
'text' is an array of strings.