_Aion_
Nothing Else
Hello, i'm making one script that remove VIP Days and [VIP] from name of player.
but i dont know what is wrong.
this is my code
Dont remove and give error.
(LuaInterface::internalGetPlayerInfo) Player not found when requesting player info #18
Is for remove from players offline, but i tried all and no sucess
but i dont know what is wrong.
this is my code
Code:
function onTime()
if string.find(tostring(getCreatureName(cid)),"[[VIP]]") and getPlayerVipDays(cid) == 0 then
db.executeQuery("UPDATE `players` SET `name` = '"..string.sub(getCreatureName(cid), 7).."' WHERE `id` = "..getPlayerGUID(cid)..";")
db.executeQuery("UPDATE players SET vipdays = vipdays - 1 WHERE vipdays > 0;")
print("VIP's Removidas com Sucesso!!")
end
return true
end
Dont remove and give error.
(LuaInterface::internalGetPlayerInfo) Player not found when requesting player info #18
Is for remove from players offline, but i tried all and no sucess