I change
isPlayer(cid) == 1
to
isPlayer(cid)
and I don't have error, and script works. lol
In this:
addEvent(doSendMagicEffect, 5000, getPlayerPosition(cid), CONST_ME_SOUND_YELLOW)
I have again this error, can you tell me how to fixt it?
luaAddEvent(). callback parameter should be a function.