waqmaz
Member
- Joined
- Jun 17, 2015
- Messages
- 203
- Reaction score
- 11
Hello. I am learning about functions in lua. I will post a piece of a code, which doesn't work. I would like to know, how to make it working and why it doesn't work. Please, help me. I will give a like and will be grateful. 
This is the code:
I am PHP programmer. I've just started some days ago to learn lua language. Big Thanks for all reply.
This is the code:
Code:
local function add_something(bbb, msg, cid)
if msgcontains(msg, bbb) and talkState[talkUser] == 1 then
selfSay("You have been "..bbb..".", cid)
talkState[talkUser] = 0
end
return true
end
add_something("the text", msg, cid)
I am PHP programmer. I've just started some days ago to learn lua language. Big Thanks for all reply.