Hello :thumbup:
I created my first MOD and I have problem (I think that you will know for what this script is (when you read code)).
Here is code:
And when I try to login then:
Can someone help me please?? :wub:
P.S. I'm using TFS 0.3.6pl1
I created my first MOD and I have problem (I think that you will know for what this script is (when you read code)).
Here is code:
Lua:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Last Login" version="1.0" author="VirrageS" contact="" enabled="yes">
<config name="lastlogin_config"><![CDATA[
config = {
first = "Welcome first time on our server !!",
again = "Welcome again on our server !!"
}
]]></config>
<event type="login" name="LastLogin" event="script"><![CDATA[
domodlib('lastlogin_config')
function onLogin(cid)
if(getPlayerLastLogin(cid) == 0) then
doPlayerSendTextMessage(cid, STATUS_CONSOLE_MESSAGE_ORANGE, (config.first))
else
doPlayerSendTextMessage(cid, STATUS_CONSOLE_MESSAGE_ORANGE, (config.again))
end
end
]]></event>
</mod>
And when I try to login then:
Code:
[08/08/2010 16:50:36] [Error - CreatureScript Interface]
[08/08/2010 16:50:36] buffer:onLogin
[08/08/2010 16:50:36] Description:
[08/08/2010 16:50:36] [string "loadBuffer"]:8: bad argument #1 to 'ipairs' (table expected, got nil)
[08/08/2010 16:50:36] stack traceback:
[08/08/2010 16:50:36] [C]: in function 'ipairs'
[08/08/2010 16:50:36] [string "loadBuffer"]:8: in function <[string "loadBuffer"]:3>
Can someone help me please?? :wub:
P.S. I'm using TFS 0.3.6pl1
Last edited: