- Joined
- Aug 5, 2008
- Messages
- 1,581
- Reaction score
- 81
Code:
function onKill(cid, target)
local kills = getPlayerFrags(cid)
if(isPlayer(target)) [B]then[/B]
if(kills == 5 or kills = 10 or kills == 15 or kills == 20) then
broadcastMessage(getCreatureName(cid) .." have reached ".. kills .." kills! Dont let him get more!",MESSAGE_STATUS_WARNING)
end
end
return true
end
Code:
[02/01/2010 08:04:27] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/frags.lua:4: 'then' expected near 'if'
[02/01/2010 08:04:27] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/frags.lua)
[02/01/2010 08:04:27] data/creaturescripts/scripts/frags.lua:4: 'then' expected near 'if'
Can someone help me with this easy fix? I don't like to mess up my creaturescripts, those are the most common crash/server/script s
Last edited: