3,314
回編集
編集の要約なし |
編集の要約なし |
||
10行目: | 10行目: | ||
g = n[1]..string.rep(m[1],100) | g = n[1]..string.rep(m[1],100) | ||
if s >= 2 then | if s >= 2 then | ||
for i = 2,s do | return "sは2以上" | ||
--[[for i = 2,s do | |||
a[i],b[i] = string.find(frame.args[1],frame.args[2],b[i-1]+1) | a[i],b[i] = string.find(frame.args[1],frame.args[2],b[i-1]+1) | ||
m[i] = string.char(string.byte(frame.args[1],a[i],b[i])) | m[i] = string.char(string.byte(frame.args[1],a[i],b[i])) | ||
17行目: | 18行目: | ||
for i = 2,s do | for i = 2,s do | ||
g = g..n[i]..string.rep(m[i],100) | g = g..n[i]..string.rep(m[i],100) | ||
end | end]] | ||
end | end | ||
o[1] = b[#b] == #frame.args[1] and "" or string.char(string.byte(frame.args[1],b[#b]+1,#frame.args[1])) | o[1] = b[#b] == #frame.args[1] and "" or string.char(string.byte(frame.args[1],b[#b]+1,#frame.args[1])) |
回編集