Originally Posted by Haleth
Then, you can check simply check if the message is valid using this:
Code:
if mas[msg] then
-- table contains the string
end
|
How I can get a number of key value (msg) in table (mas)?
It's for this:
local startPos, endPos = string.find(msg,mas[i]);
|
if string.sub(msg,startPos,endPos) == mas[i] then
|