Postado Setembro 20, 2023 1 ano Erro só nesta parte do systemvip perfect vip system 2.0 elseif(words == "/checkvip") then if getPlayerAccess(cid) == 5 then if not param then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") end local player = getPlayerByName(param) if not isPlayer(player) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player "..player.." not found.") end local timenow = os.time() local quantity = math.floor((getPlayerStorageValue(player, 13545) - timenow)/(24 * 60 * 60)) doPlayerPopupFYI(cid, "O jogador tem ".. (quantity < 0 and 0 or quantity) .." dias de VIP no character.") return TRUE end [19/09/2023 23:23:03] [Error - TalkAction Interface] [19/09/2023 23:23:03] data/talkactions/scripts/systemvip.lua:onSay [19/09/2023 23:23:03] Description: [19/09/2023 23:23:03] data/talkactions/scripts/systemvip.lua:47: attempt to concatenate local 'player' (a nil value) [19/09/2023 23:23:03] stack traceback: [19/09/2023 23:23:03] data/talkactions/scripts/systemvip.lua:47: in function <data/talkactions/scripts/systemvip.lua:3> ALGUEM CONSEGUE ARRRUMA ESSE SCRIPT AQUI EM BAIXO --[[ by vodkart ]]-- function onLogin(cid) if getPlayerStorageValue(cid, 13540) - os.time() > 0 then setPlayerStorageValue(cid, 9898, 1) end local pos = {x = 157, y = 50, z = 7} -- posiçao do templo. function Vodka(cid) if isPlayer(cid) then db.executeQuery("UPDATE `players` SET `name` = '"..string.sub(getCreatureName(cid), 7).."' WHERE `id` = "..getPlayerGUID(cid)..";") doRemoveCreature(cid) end end if getPlayerStorageValue(cid, 9898) == 1 and getPlayerStorageValue(cid, 13540) - os.time() < 1 or getPlayerStorageValue(cid, 13540) - os.time() == 0 then doTeleportThing(cid, pos) doPlayerPopupFYI(cid, "Sua vip Account acabou.") setPlayerStorageValue(cid, 9898, -1) if string.find(tostring(getCreatureName(cid)),"[[Vip]]") then addEvent(Vodka, 3*1000, cid) end end return TRUE end Editado Setembro 20, 2023 1 ano por Muvuka (veja o histórico de edições)
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.