View Single Post
07-10-12, 04:17 AM   #14
Wishko
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Sep 2010
Posts: 7
Originally Posted by Haleth View Post
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
  Reply With Quote