I have a vip script and 4 items when you right click on one of these items you will get vip
The script worked before now suddenly when you press one of the items a box appears wich you can write things in.. How do i fix this? im using bronze goblet,silver goblet,gold golbet and medal of hounor.
I get this error when i press it
And i have this in vipf
I think in generall my data/lib is bugged can someone uppload another one
The script worked before now suddenly when you press one of the items a box appears wich you can write things in.. How do i fix this? im using bronze goblet,silver goblet,gold golbet and medal of hounor.
I get this error when i press it
PHP:
[22:34:17.618] [Error - Action Interface]
[22:34:17.618] data/actions/scripts/vip/vipmedal.luanUse
[22:34:17.618] Description:
[22:34:17.618] data/lib/099-VIPf.lua:13: attempt to call field 'executeQuery' (a nil value)
[22:34:17.618] stack traceback:
[22:34:17.618] data/lib/099-VIPf.lua:13: in function 'doAddVipDays'
[22:34:17.618] data/actions/scripts/vip/vipmedal.lua:13: in function <data/actions/scripts/vip/vipmedal.lua:1>
[22:34:22.861] mysql_real_query(): SELECT `id`, `guild_id`, `enemy_id` FROM `guild_wars` WHERE (`guild_id` = 1 OR `enemy_id` = 1) AND `status` IN (1,4) - MYSQL ERROR: Table 'tfs.guild_wars' doesn't exist (1146)
And i have this in vipf
PHP:
--- Vip functions by Kekox
function getPlayerVipDays(cid)
local Info = db.getResult("SELECT `vipdays` FROM `accounts` WHERE `id` = " .. getPlayerAccountId(cid) .. " LIMIT 1")
if Info:getID() ~= LUA_ERROR then
local days= Info:getDataInt("vipdays")
Info:free()
return days
end
return LUA_ERROR
end
function doAddVipDays(cid, days)
db.executeQuery("UPDATE `accounts` SET `vipdays` = `vipdays` + " .. days .. " WHERE `id` = " .. getPlayerAccountId(cid) .. ";")
end
function doRemoveVipDays(cid, days)
db.executeQuery("UPDATE `accounts` SET `vipdays` = `vipdays` - " .. days .. " WHERE `id` = " .. getPlayerAccountId(cid) .. ";")
end
I think in generall my data/lib is bugged can someone uppload another one
Last edited: