Jump to content

#DaNiLiN

Members
  • Posts

    296
  • Joined

  • Last visited

  • Days Won

    3

#DaNiLiN last won the day on February 15 2019

#DaNiLiN had the most liked content!

5 Followers

Recent Profile Visitors

1,580 profile views

#DaNiLiN's Achievements

Pee-Wee

Pee-Wee (21/54)

79

Reputation

  1. Eu enviei uma parte do código no privado.
  2. Olá tentei fazer um sistema de relatório pra cada bau, mas usei apenas uma lista de grade. Até ai tudo bem só que esqueci do detalhe que é apenas uma lista de grade e quando eu vou em outro bau aparece os dados(addi item) do primeiro bau. Isso fez que eu me perdesse o que vocês recomenda que eu faça :\
  3. Ata, Utiliza a linha textPistol = guiGetText(EditPistola) dentro da if (tonumber(guiGetText(EditPistola))) then não esqueça de adicionar um local atrás da linha function purchaseWeapons(button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedWorld) if DirectX == true then local playerMoney = getPlayerMoney(localPlayer) if state == "down" then if cursorPosition(screenW * 0.4609, screenH * 0.5500, screenW * 0.0117, screenH * 0.0417) then --//PISTOLA if (tonumber(guiGetText(EditPistola))) then local textPistol = guiGetText(EditPistola) local weapon, ammo, price, weaponName = 22, tonumber(textPistol), 10000 + 150 * tonumber(textPistol), "Colt 45" -- Linha com erro triggerServerEvent("DeltaSCR:Buy", localPlayer, weapon, ammo, price, weaponName) DeltaAbrir() else outputChatBox("ERRO: #FFFFFFPor favor, preencha o campo com um número válido", 200, 50, 0, true) end elseif cursorPosition(screenW * 0.3438, screenH * 0.6667, screenW * 0.1172, screenH * 0.0417) then --//AK-47 weapon, ammo, price, weaponName = 20, 280, 18000, "AK-47" triggerServerEvent("DeltaSCR:Buy", localPlayer, weapon, ammo, price, weaponName) DeltaAbrir() elseif cursorPosition(screenW * 0.3438, screenH * 0.6083, screenW * 0.1172, screenH * 0.0417) then --//SHOTGUN weapon, ammo, price, weaponName = 25, 120, 25000, "Shotgun" triggerServerEvent("DeltaSCR:Buy", localPlayer, weapon, ammo, price, weaponName) DeltaAbrir() end end end end addEventHandler ("onClientClick", root, purchaseWeapons)
  4. Ata porque eu reparei ali que tu ta puxando os números de outro editbox. E na print que tu mandou não da pra identificar em qual linha ta o erro.
  5. Sabe dizer se tem outro guiEdit além do EditPistola no seu código?
  6. Pelo motivo de eu usar ctrl + D. E Também não interfere em nada :\ O Erro não é no recurso ele funcionou em vários servidores sem nenhum problema creio eu que essa versão desse servidor está desatualizado
  7. Tente arvore1 = {} function coletar01(source) if isElementWithinMarker(source, coletardroga1) then arvore1[source] = createObject ( 2332, x, y, z, rx, ry, rz ) -- NÃO PODE TER "LOCAL ATRÁS DA LINHA POIS SE VOCÊ DESTRUIR EM OUTRAS FUNÇÕES VAI DAR ERRO setElementVisibleTo(coletardroga1, source, false) setPlayerWantedLevel(source, 6) toggleAllControls (source, false) setElementPosition(source,-1077.54639, -1637.18079, 76.36719) setPedAnimation(source,"bomber", "BOM_Plant_Loop", 30000, true, false, false, false) outputChatBox("#00FA9A[maconha] #ffffffvoce esta coletando as folhas de maconha aguarde", source, 255, 255, 255, true) setTimer( function () triggerClientEvent(source, "doShowProgressBarf", source) triggerEvent(eventorestart, root) end, 1000, 1) setTimer( function () destroyElement(arvore1[source]) outputChatBox("#00FA9A[maconha] #ffffffVoce coletou a primeira remessa de folhas #00fa9a60/60 ", source, 255, 255, 255, true) toggleAllControls (source, true) end, 30000, 1) end end addCommandHandler("colher1",coletar01)
  8. Acho que entendi. Isso deve te servir function Dx () dxDrawButton(x*379, y*300, x*608, y*53, "SIM", tocolor(255, 0, 0, 220), tocolor(255, 255, 255, 255), "default-bold", 1, false, false) end --==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==- function dxDrawButton(posX, posY, width, height, text, cursorColor, colorText, font, scale, colorCoded, postGUI) dxDrawRectangle(posX, posY, width, height, isCursorOnElement(posX, posY, width, height) and cursorColor or tocolor(0, 0, 0, 150), postGUI) dxDrawText(text, posX + posX, posY + posY -3, width, height, isCursorOnElement(posX, posY, width, height) and tocolor(255, 255, 255, 255) or colorText, scale, Font_4, "center", "center", false, false, postGUI, colorCoded, false) end --==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-
  9. Sim, eu entendi ali no seu código que é vários itens. como M4 AK-47 UZI e etc. Com a lista de grade tu vai diminuir umas 600 linhas
  10. Que doideira. Eu até tinha anexado o veiculo diretamente no caminhão (Pra teste) e tinha dado certo. Minha ideia e fazer que o jogador leve o veiculo até o marker que está anexado no caminhão e assim o veiculo fique anexado. (Um Trabalho) tem alguma forma funcional que essa minha ideia possa funcionar ? :\
  11. Dai você deve estudar como funciona lista de grade e suas funções. Comece por CE-GUI que é mais fácil... https://wiki.multitheftauto.com/wiki/GuiCreateGridList
×
×
  • Create New...