I am noticing error message spam like this:
WARNING: za/zkillreward.lua:3: Bad argument @ 'getPlayerAccount'
WARNING: za/zkillreward.lua:5: Bad argument @ 'hasObjectPermissionTo'
The lines referred in those errors include addEventHandler I think.
addEventHandler ("onPlayerJoin",getRootElement(),
function (client)
local player = getPlayerAccount(client)
look = nil
if hasObjectPermissionTo( client, 'general.adminpanel', false ) then
setAccountData (player,"Permission to get out","true")
end
end)
Is there any way to fix that? I don't know how to script or anything but changing lines and such I can definitely do.
Also, as this has been mentioned before...
I am also getting aforementioned spam regarding getAccountData. If the function can still be used the same way, why are errors still getting put out in regards to it? Is there something I should change in the SQLite database to better reflect the behaviour of the function?
{Third issue nicked due to being answered in appropriate thread.}
Anyway, thanks for any help in advance. This is a fun resource and I'd like to be able to host it nearly full-time. (save for when I just want to mess around and make things go boom)
EDIT: Forgot to add: I am using the 1.0.4-9-2033.2 release on GNU/Linux, Ubuntu distro with XFCE4.