Extrodus
|| Blazera.net ||
Hello, My frag reward isn't giving players money when they kill eachother. Here is the script,
Here is the error in console;
If anyone could help me out it'd be much appreciated, the players are sort of upset it doesn't work.
Thank you for your time!
Regards,
Extrodus
function onKill(cid, target)
if isPlayer(target) == TRUE then
if getPlayerIp(cid) ~= getPlayerIp(target) then
loot = 2152
item = doPlayerAddItem(cid,loot,1)
elseif getPlayerName(cid) == getPlayerName(target) then
doPlayerAddItem(cid,loot,1)
else
end
return TRUE
end
Here is the error in console;
[30/09/2010 22:51:04] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/fragreward.lua:11: 'end' expected (to close 'function' at line 1) near '<eof>'
[30/09/2010 22:51:04] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/fragreward.lua)
[30/09/2010 22:51:04] data/creaturescripts/scripts/fragreward.lua:11: 'end' expected (to close 'function' at line 1) near '<eof>'
If anyone could help me out it'd be much appreciated, the players are sort of upset it doesn't work.
Thank you for your time!
Regards,
Extrodus