PDA

View Full Version : What's wrong in this code?



ososzayat
09-09-2016, 02:37 AM
can i know what's wrong here?
supposed to be said by npc with orange message "WANNA JOIN?", and i need to respond with "yes"



EffectMessageProxy.OnReceive("Game", function(message, x, y, z)
local CMessages = {"WANNA JOIN?"}
for _, data in ipairs(CMessages) do
if message == data then
wait(1000)
Self.Say("yes")
end
end
end)

thanks in advance :)