I have this error :/ Anyone can help me?:$
[25/02/2010 04:07:54] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/proteccion.lua)
[25/02/2010 04:07:54] data/creaturescripts/scripts/proteccion.lua:6: ')' expected (to close '(' at line 5) near 'doTeleportThing'
Code:
function onPrepareDeath(cid, deathList)
if getPlayerLevel(cid) < 40 then
doCreatureSetDropLoot(cid, 0)
doCreatureAddHealth(cid, getCreatureMaxHealth(cid), true)
doCreatureAddMana(cid, (getCreatureMaxMana(cid) - getCreatureMana(cid))
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
end
return true
end