L
LordVissie
Guest
Hello, I'm having some problems. I'm using TFS 0.3.6
When I start my server I recieve this error
my start.lua
I recieve a another error when i try to login and i can't login it's just saying "Connecting to the game world server"
Another errors
my templeteleport.lua
My lib/004-database.lua
http://pastebin.com/ufTnGreS
my lib/050-function.lua
http://pastebin.com/TmzHvBnR
and my vipcheck.lua
And to the end i recieve this error.
my lib npc.lua file
http://pastebin.com/YNZZ0nvi
Who knows a solution?
Thanks.
When I start my server I recieve this error
Code:
[20/09/2015 10:42:10] [Error - GlobalEvent Interface]
[20/09/2015 10:42:10] data/globalevents/scripts/start.lua:onStartup
[20/09/2015 10:42:10] Description:
[20/09/2015 10:42:10] data/globalevents/scripts/start.lua:2: attempt to concatenate a nil value
[20/09/2015 10:42:10] stack traceback:
[20/09/2015 10:42:10] data/globalevents/scripts/start.lua:2: in function <data/globalevents/scripts/start.lua:1>
my start.lua
Code:
function onStartup()
db.executeQuery("UPDATE `players` SET `online` = 0 WHERE `world_id` = " .. getConfigValue('worldId') .. ";")
return true
end
I recieve a another error when i try to login and i can't login it's just saying "Connecting to the game world server"
Code:
[20/09/2015 10:46:28] [Error - GlobalEvent Interface]
[20/09/2015 10:46:28] data/globalevents/scripts/record.lua:onRecord
[20/09/2015 10:46:28] Description:
[20/09/2015 10:46:28] data/globalevents/scripts/record.lua:2: attempt to concatenate a nil value
[20/09/2015 10:46:28] stack traceback:
Code:
[20/09/2015 10:46:28] data/globalevents/scripts/record.lua:2: in function <data/globalevents/scripts/record.lua:1>
[20/09/2015 10:46:28] GOD Viso has logged in.
[20/09/2015 10:46:28] mysql_real_query(): SELECT `vipdays` FROM `accounts` WHERE `id` = 3 LIMIT 1 - MYSQL ERROR: Unknown column 'vipdays' in 'field list' (1054)
Another errors
Code:
[20/09/2015 10:46:28] [Error - CreatureScript Interface]
[20/09/2015 10:46:28] data/creaturescripts/scripts/templeteleport.lua:onLogin
[20/09/2015 10:46:28] Description:
[20/09/2015 10:46:28] data/lib/004-database.lua:60: [Result:getDataInt] Result not set!
[20/09/2015 10:46:28] stack traceback:
[20/09/2015 10:46:28] [C]: in function 'error'
[20/09/2015 10:46:28] data/lib/004-database.lua:60: in function 'getDataInt'
[20/09/2015 10:46:28] data/lib/050-function.lua:5: in function 'getPlayerVipDays'
[20/09/2015 10:46:28] data/creaturescripts/scripts/templeteleport.lua:2: in function <data/creaturescripts/scripts/templeteleport.lua:1>
[20/09/2015 10:46:28] mysql_real_query(): SELECT `vipdays` FROM `accounts` WHERE `id` = 3 LIMIT 1 - MYSQL ERROR: Unknown column 'vipdays' in 'field list' (1054)
my templeteleport.lua
Code:
function onLogin(cid)
if getPlayerVipDays(cid) > 0 then
setPlayerStorageValue(cid, 20500, 1)
elseif getPlayerVipDays(cid) == 0 and getPlayerStorageValue(cid, 20500) == 1 then
doTeleportThing(cid, getPlayerMasterPos(cid))
setPlayerStorageValue(cid, 20500, -1)
end
return true
end
My lib/004-database.lua
http://pastebin.com/ufTnGreS
my lib/050-function.lua
http://pastebin.com/TmzHvBnR
and my vipcheck.lua
Code:
--- Script by Kekox
function onLogin(cid)
if getPlayerVipDays(cid) >= 1 then
doPlayerSendTextMessage(cid, 19, "You have ".. getPlayerVipDays(cid) .." vip days left.")
end
return true
end
And to the end i recieve this error.
Code:
[Error Npc interface]
data/npc/lib/npc.lua
Description: Not enough memory
http://pastebin.com/YNZZ0nvi
Who knows a solution?
Thanks.
Last edited by a moderator: