• Content count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About jackpszmta

  • Rank


  • Gang
  1. Okey, its work end code: addEventHandler("onClientGUIClick",g_e_login,test, true) function test () setTimer(setIndexInput,2000,1) end function setIndexInput(akcja) local tlogin = guiGetText(g_e_login) local plogin = guiGetText(g_e_password) local textLength = string.len(tlogin) if (textLength) > 0 then guiEditSetCaretIndex(g_e_login,textLength+1) else guiEditSetCaretIndex(g_e_login,1) end end Close.
  2. function isMouseIn(psx,psy,pssx,pssy,abx,aby) if not isCursorShowing() then return end cx,cy=getCursorPosition() cx,cy=cx*sx,cy*sy if cx >= psx and cx <= psx+pssx and cy >= psy and cy <= psy+pssy then return true,cx,cy else return false end end if isMouseIn(here code from guiCreateEdit,"",true) then guiEditSetCaretIndex(g_e_login,1) end That be good? Or better idea is eventHandler onClientClick and then code from up? EDIT: I create that code, but when i click on editbox nothing happen ;/. addEventHandler("onClientGUIClicked",g_e_login,setIndexInput, false) addEventHandler("onClientGUIClicked",g_e_password,setIndexInput, false) function setIndexInput() local tlogin = guiGetText(g_e_login) local plogin = guiGetText(g_e_password) if source == g_e_login then local textLength = string.len(tlogin) if (textLength) > 0 then guiEditSetCaretIndex(source,textLength+1) outputChatBox("1") else setTimer(function() guiEditSetCaretIndex(source,1) end,500,1) end end if source == g_e_password then local textLength = string.len(plogin) if (textLength) > 0 then guiEditSetCaretIndex(source,textLength+1) outputChatBox("1") else guiEditSetCaretIndex(source,1) outputChatBox("1") end end end
  3. On gif you can see what is doing when i click on edit, i think is bug or something block insert text to edit. ;( Edit: In GUIEditor editbox work fine, only in my code something is bad.
  4. Still the same with guiSetInputEnabled.
  5. Hi, i create panel login all works fine but is one small bug i cant insert any word to editbox. But if i'll keep LMB then i can entry word. Someone have that bug and fix it? function displayLoginPanel() showCursor(true) showChat(false) showPlayerHudComponent("all",false) guiSetInputMode("no_binds_when_editing") g_e_login = guiCreateEdit(sw*99/mw,sh*215/mh,sw*250/mw,sh*27/mh,"",false) end
  6. Original: IP: mtasa:// https://i.gyazo.com/775c3d859fdc862cd2c ... 0b79fa.png Fakes: IP: mtasa:// IP: mtasa:// https://i.gyazo.com/7da8e0d6952b7be2239 ... 36bc0f.png They take my name and tag server and get players on that. Of course, my server was created first. Here's is video from my servers for confirmation: - The only thing that has changed is hosting, IP and address forum
  7. Topic to close, Tosfera help me.
  8. No, always content is 2x.
  9. This function is triggered from c-side addEventHandler("onClientColShapeLeave", colMeta, function(el,md) if getElementType(el)~="vehicle" then return end local veh=getPedOccupiedVehicle(localPlayer) if veh and veh==el and getVehicleController(veh)==localPlayer then local vehicleP = getElementModel(veh) if ts then local czas=getTickCount()-ts local tczas=string.format("%.3fs", czas/1000) outputChatBox("Twój czas:".."\n"..tczas) local timeP = czas/1000 triggerServerEvent("registerPredkosc", resourceRoot, localPlayer, vehicleP, timeP) end triggerEvent("startStoper", root, false) ts=nil end end) I think, must add something like refresh the text before createElement('text')
  10. Yes, if there is 3 content then 3x first, 3x second and then 1 new content.
  11. This is the script to record(?) the time from the start line to the finish line, after crossing the finish line executes the up script, if only 1 player end this record is okay - the text is displayed right. But when next player - first the contents of the table is doubled. Screenshot maybe help u in explain ;d if there only 1 content in table - http://imgur.com/X5cUNH if there 2 content in table - http://imgur.com/2wKsYYU
  12. from 3d-text:
  13. Hello guys i write script, everything works fine, but if there 2-3 the last time, 3d-text show doubles time(http://imgur.com/cSI4ub5) How i can fix that? Sorry for bad english. local drag = {} local deftext=" Last time:" local t = createElement("text") setElementPosition(t,2225.85,-1742.41,15) setElementData(t,"text",deftext) setElementData(t,"scale",1.0) local function addText() local t = createElement("text") setElementPosition(t,2225.85,-1742.41,14.56) setElementData(t,"text",table.concat(drag)) setElementData(t,"scale",1) setElementData(t,"1stAdd",true) end function registered(plr,vehicleP,timeP) if vehicleP and timeP then local text = getPlayerName(plr).."-"..getVehicleNameFromModel(vehicleP).." time: "..string.format("%.2f",timeP).."\n" if text then table.insert(drag,text) addText() end end if #drag > 5 then table.remove(drag, 1) end --addText() end addEvent("registerPredkosc",true) addEventHandler("registerPredkosc",resourceRoot,registered)
  14. Jakieś błędy w db3? Możliwe że to przez to że w mecie masz źle zrobiony komentarz '-- nowe modele', powinno być