Ir para conteúdo

Líderes

Conteúdo Popular

Exibindo conteúdo com a maior reputação em 09/13/22 em todas áreas

  1. 1 ponto
    Baixa o banco de dados e altera /\ /\ id com o AUTO_INCREMENT que vem por padrao na maioria dos Nome.sql \/ \/ auto incremente no final da função com o valor de onde vai começar se mudar para 1 a primeira conta a ser criada vai ser a 1 279 e a conta que vai ser criada então se alguem criar agora esse 279 vai subir para 280 para uma nova conta que vai ser criada
  2. 1 ponto
    Matou a charada po! Abri uma base dados no pc e o problema parou totalmente. Muuuuuuuuuuuuito obrigado cara, muito mesmo, tanto você quanto o FeeTads por disponibilizarem o tempo de vocês e me ajudarem! Abraço
  3. 1 ponto
    additemdepot.lua function doPlayerAddDepotItems(pid, item, count) --By magus and edited by vodkart local item,count = {item},{(count or 1)} for k,v in ipairs(item) do local ls = db.getResult("SELECT `sid` FROM `player_depotitems` WHERE `player_id` = "..pid.." ORDER BY `sid` DESC LIMIT 1") return db.executeQuery("INSERT INTO `player_depotitems` (`player_id`, `sid`, `pid`, `itemtype`, `count`, `attributes`) VALUES ("..pid..", "..(ls:getDataInt("sid")+1)..", 101, "..v..", "..count[k]..", '')") or false end end function onSay(cid, words, param) local t = string.explode(param:lower(),",") if not t[1] then doPlayerSendCancel(cid, "digite Nome, Item ID, quantidade.") return true elseif not getPlayerByNameWildcard(t[1]) and not getPlayerGUIDByName(t[1]) then doPlayerSendCancel(cid, "Você deve digitar um Nome Válido.") return true elseif not tonumber(t[2]) or not tonumber(t[3]) or tonumber(t[3]) < 1 or tonumber(t[3]) > 999 or not isItemStackable(t[2]) and tonumber(t[3]) > 10 then doPlayerSendCancel(cid, "você deve digitar NOME,ID,QUANTIDADE(maior que 0"..(not isItemStackable(t[2]) and " até 10 se não for empilhavel." or " até 1000 se for empilhavel.")..").") return true elseif not isItemMovable(t[2]) or not getItemNameById(tonumber(t[2])) then doPlayerSendCancel(cid, "Este item não existe ou não pode ser adicionado ao jogador.") return true end local player = getPlayerByNameWildcard(t[1]) if player then parcel = doCreateItemEx(ITEM_PARCEL) if isItemStackable(t[2]) or tonumber(t[3]) == 1 then doAddContainerItem(parcel, t[2], t[3]) else for i = 1, t[3] do doAddContainerItem(parcel, t[2], 1) end end doPlayerSendMailByName(getPlayerNameByGUID(getPlayerGUIDByName(t[1])), parcel, 1) else local getPlayer = getPlayerGUIDByName(t[1]) if isItemStackable(t[2]) or tonumber(t[3]) == 1 then doPlayerAddDepotItems(getPlayer, t[2], t[3]) else for i = 1, t[3] do doPlayerAddDepotItems(getPlayer, t[2], 1) end end end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"você adicionou "..t[3].." "..getItemNameById(t[2]).." ao depot do jogador "..t[1]) return true end TAG <talkaction log="yes" access="5" words="/adddepot" event="script" value="additemdepot.lua"/> Exemplo: /adddepot vodkart,2160,500 or /adddepot vodkart,2494,6 postei isso em 2013 acho la na otland kk https://otland.net/threads/add-items-depot-from-player-online-offline.196947/
  4. EDIT: RESOLVIDO, Foi só eu deletar a coluna conditions !!! EDIT2: Ao apagar a table conditions não dava para logar no servidor, então descobri que mudando pra null funcionava perfeitamente Está dando esse erro em um AAC que estou usando alguem pode me ajudar? Database Error Error: SQLSTATE[HY000]: General error: 1364 Field 'conditions' doesn't have a default value SQL Query: INSERT INTO `pokechu`.`players` (`world_id`, `group_id`, `account_id`, `level`, `vocation`, `health`, `healthmax`, `experience`, `lookbody`, `lookfeet`, `lookhead`, `looklegs`, `looktype`, `lookaddons`, `lookmount`, `maglevel`, `mana`, `manamax`, `manaspent`, `soul`, `town_id`, `posx`, `posy`, `posz`, `cap`, `sex`, `lastlogin`, `lastip`, `save`, `skull`, `skulltime`, `rank_id`, `lastlogout`, `blessings`, `pvp_blessing`, `balance`, `stamina`, `direction`, `loss_experience`, `loss_mana`, `loss_skills`, `loss_containers`, `loss_items`, `premend`, `online`, `marriage`, `promotion`, `deleted`, `Golden`, `name`) VALUES (0, 1, 2, 1, 0, 150, 150, 0, 0, 0, 0, 0, 136, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, '1', '0', 0, 0, 0, 0, '0', 0, 151200000, 2, 100, 100, 100, 100, 100, 0, '0', 0, 0, 0, 0, 'Teste') Notice: If you want to customize this error message, create app\View\Errors\pdo_error.ctp Caso queiram baixar o AAC https://github.com/avuenja/otaacotimo sistema funciona super bem.
Líderes está configurado para São Paulo/GMT-03:00

Informação Importante

Confirmação de Termo