• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

War System For Websites (Now With Php Files)

0.3.5 TFS

Code:
[18/09/2009 00:54:41] data/creaturescripts/scripts/custom/kill.lua:22: attempt to call global 'getPlayerRedSkullTicks' (a nil value)
[18/09/2009 00:54:41] stack traceback:
[18/09/2009 00:54:41] 	data/creaturescripts/scripts/custom/kill.lua:22: in function <data/creaturescripts/scripts/custom/kill.lua:3>

any1 can help? on older version was working fine
 
Try to change getPlayerRedSkullTicks to getPlayerSkullEnd
 
Try to change getPlayerRedSkullTicks to getPlayerSkullEnd


[18/09/2009 18:02:51] data/creaturescripts/scripts/custom/kill.lua:22: attempt to perform arithmetic on upvalue 'fragTime' (a nil value)
[18/09/2009 18:02:51] stac

those lines from script:

Code:
if team > 0 then
            db.executeQuery("INSERT INTO `war_deaths` (`war_id`, `team`, `from_guild`, `to_guild`, `player_id`, `killed_by`) VALUES (" .. id .. ", " .. team .. ", " .. getPlayerGuildId(cid) .. ", " .. getPlayerGuildId(target) .. ", " .. getPlayerGUID(target) .. ", " .. getPlayerGUID(cid) .. ");")
           doPlayerSetRedSkullTicks(cid, getPlayerSkullEnd(cid)-fragTime)
        end
 
Parse error: parse error in C:\xampp\htdocs\wars.php on line 202

not working
 

Similar threads

Back
Top