Postado Outubro 23, 2016 8 anos Olá galera, tenho o seguinte código: Citar function onLogin(cid) local vocation = getPlayerVocation(cid) local id = getPlayerGUID(cid) if vip.hasVip(cid) == true then if(isInArray({1,2,3,4}, getPlayerVocation(cid)) == TRUE) then elseif vocation == 1 then db.executeQuery("UPDATE `players` SET `vocation` = 5 WHERE `id` ='"..id.."';") elseif vocation == 2 then db.executeQuery("UPDATE `players` SET `vocation` = 6 WHERE `id` ='"..id.."';") elseif vocation == 3 then db.executeQuery("UPDATE `players` SET `vocation` = 7 WHERE `id` ='"..id.."';") elseif vocation == 4 then db.executeQuery("UPDATE `players` SET `vocation` = 8 WHERE `id` ='"..id.."';") end end return true end Ele faz o seguinte: O player adquire o VIP no site, ao deslogar e logar novamente ele recebe a vocation VIP, tive que realizar esse sistema porque não achei outro, porém ele não está funcionando, não acontece nada! Alguém pode me ajudar por favor? Eu necessito disso urgente! Dou quantos REP+ forem necessários! Obrigado.
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.