Jump to content

pancio1252

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by pancio1252

  1. odkrylem ze jak zmienie event:onClientGUIComboBoxAccepted na innz to je wsyzstko dobrze tylko co jest przyczyna ...
  2. Witam,robię system postaći z logowaniem i napotkałem problem function RenderujInformacje() local item = guiComboBoxGetSelected(Postac_GUI.combobox[1]) if item ~= "" then local text = guiComboBoxGetItemText(Postac_GUI.combobox[1], item) local addowany = getElementByID(text) local imie = getElementData(addowany,"Imie") local nazwisko = getElementData(addowany,"Nazwisko") local id = getElementData(addowany,"IDPostaci") local kasa = getElementData(addowany,"Kasa") local score = getElementData(addowany,"Score") local data = getElementData(addowany,"Data") if getElementData(g_me,"Jezyk") == "Polski" then guiSetText(Postac_GUI.label[2],"Imie:"..imie.."\nNazwisko:"..nazwisko.."\nLiczba rozładunków:"..score.."\nData stworzenia postaći:"..data.."\nPieniadze postaći "..kasa.."$") end if getElementData(g_me,"Jezyk") == "Angielski" then guiSetText(Postac_GUI.label[2],"Name of character:"..imie.."\nSurname of the character:"..nazwisko.."\nThe total number of unloadings:"..score.."\nDate of creation character:"..data.."\nCharacter has "..kasa.."$") end end end addEventHandler ( "onClientGUIComboBoxAccepted",Postac_GUI.combobox[1],RenderujInformacje) tutaj tworzenie elementu addowany: local addowany = createElement(v[3]..":"..v[1].." "..v[2],v[3]) setElementData(addowany,"Imie",v[1]) setElementData(addowany,"Nazwisko",v[2]) setElementData(addowany,"IDPostaci",v[3]) setElementData(addowany,"Kasa",v[4]) setElementData(addowany,"Score",v[5]) setElementData(addowany,"Data",v[6]) Gdy wybiore w comboboxie postać to crashuje mi sie mta,,Help
  3. debugowanie nic nei daje sprawdzalem na warunkach if oraz chatBox odpowiednie zmienne ale nic wszystko jest dobrze obrazki tworza sie w tym sammy mejsciu ciagle jeden na drugim Podejzewam ze moze cos zle z obliczeniami
  4. Ten kod pisalem od zera i mi nie mow ze nie ...HELP ps.to tylko urywek
  5. Witajcie.Mam problem otóz zrobiłem sobie radar na zasadzie dxDrawImageSectionion i wszystko ok tylko jak tworze blip to pokazuje on się w lewym gornym rogu radaru zawsze... local size2 = 0.025*resolution[1]; local zoom = 1; local mapSize = 3000 local blips = getElementsByType("blip") for a,blip in ipairs(blips) do local bx,by,bz = getElementPosition(blip) if math.abs(px-bx) <= size2*2 and math.abs(py-by) <= size2*2 then -- local nx,ny=(3000+bx)/6000*mapSize,(3000-by)/6000*mapSize if not(getBlipIcon(blip) == 0) then local nx2,ny2=(3000+bx)/6000*mapSize,(3000-by)/6000*mapSize local radius2=getRadarRadius() local maprad2=radius2/6000*mapSize*zoom local mx2,my2,mw2,mh2=nx2-maprad2,ny2-maprad2,maprad2*2,maprad2*2 local scx2,scy2,scw2,sch2=90,resolution[2]-200,size2,size2 dxDrawImage(scx2,scy2,scw2,sch2,'blipy/'..getBlipIcon(blip)..'.png',0,0,0) end end end end
×
×
  • Create New...