Jump to content

Rat32

Members
  • Posts

    121
  • Joined

  • Last visited

Everything posted by Rat32

  1. Hello. I'm trying to create script like ModLoader. Task: adding dff and txd to folder and loading to script and replacing without adding this to meta.xml What functions I must use? Sorry for my bad English.
  2. Solved. Very thanks!
  3. Hay! I'm trying to synchronize MTA login with ipb board accounts, but i dont know how to encrypt this. hash = md5( md5(salt)..md5(password) ) - NOT WORK.
  4. Rat32

    Date comparing

    How I can compare the date? I have in MYSQL date for example "12-12-2015 13:34" and i want to check whether it's been 30 minutes.
  5. Rat32

    Date comparing

    How I can compare the date? I have in MYSQL date for example "12-12-2015 13:34" and i want to check whether it's been 30 minutes.
  6. Rat32

    onClientClick

    Now work. Thanks!
  7. Rat32

    onClientClick

    addEventHandler("onClientClick",getRootElement(), function( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement) if button=="left" then if state=="down" then if clickedElement==loginNickEdit then guiSetPosition(clickedElement,5000,5000,false) else guiSetPosition(loginNickEdit,0.32, 0.39,true) guiSetPosition(loginHasloEdit,0.32, 0.43,true) guiSetPosition(registerNickname,0.52, 0.39,true) guiSetPosition(registerPassword,0.52, 0.43,true) guiSetPosition(registerConfirmPassword,0.52, 0.46,true) end end end end) Why element-type ALWAYS returning false or nothing?
  8. Czesc! Planuje zrobic caly interfejs serwera w postaci zblurowanych okienek. Nie mam jednak pojecia jak sie za to zabrac. Kminilem z dxDrawImageSection przy uzyciu shadera i fakt, robilo mi zblurowane "cos" na ekranie, z tym ze tak jakby dublowalo mi moj ekran, widzialem drugiego CJ, a zalezy mi na tym, zeby byl to efekt taki, jakbysmy przykladowo nalozyli na ekran czerwoną kartkę, rozumiecie, nie? Z gory dzieki za pomoc.
  9. Rat32

    Blur Window

    Hey! Recently I wanted to get on with making a blurred window . What exactly is it? And with it , lest at any given point on the screen zamazywalo it to me. But as I tried to do something like that it kind of created a fuzzy , but formed like a second monitor . Ending - I mean such blurring as in the Windows Start bar 10
  10. Rat32

    onWeaponFire

    Are you running server-side event " onWeaponFire " ? I checked many times and something I did not want him to call . Also you have this problem?
  11. In order to KillTimer then he acted only on this one timer. If it is running 40 timers with variable tt and I want to keep only one timer is no problem arises : / . And so it would add "if" and getElementData (tt, " gangzone " zone) is stopowaloby only one timer which is equal to , for example, getElementData " gangzone1 " . How can I do this? If this array would ask for example in the code, because not too understand how to do it. I know how to do the kind of arrays in Lua , but I can not see how to replace the setElementData . Greetings.
  12. First, read about it, then answer ; d . I have no problem with the timer . Doradźcie me just how to set a date for the timer ?
  13. Hi. I want to set the timer setElementData , but debugscript think it is impossible. "Expected element at point 1 - got lua - timer" . It is very necessary to me , because without it I am not able to do the script. Dam code can invent something . Hi. function takegangzone(hitElement) tim = getPlayerTeam(hitElement) if getRadarAreaColor(getElementData(source, "area")) ~= getTeamColor(tim) then setRadarAreaFlashing(getElementData(source, "area"), true) tt = setTimer(function(source) local r,g,b = getTeamColor(getPlayerTeam(hitElement)) setRadarAreaColor(getElementData(source, "area"), r,g,b,150) setRadarAreaFlashing(getElementData(source, "area"), false) end, 5000, 1, source, tim) setElementData(tt, "przejmujacy", getPlayerName(hitElement)) end end addEventHandler("onColShapeHit", gz1col, takegangzone)
  14. Hi. Using setCameraMatrix even on the test server where you do not have your scripts hides the HUD me. setPlayerComponentVisible also does not help. Another idea?
  15. function rejestrujemy(username, password) litery = {"a", "b", "c"} local istnienieLoad = exports.DB2:pobierzWyniki("SELECT * FROM ACCS WHERE acc=?", username) if istnienieLoad == nil then for i=1, #username do local toprint = username:sub(i, i) if toprint == [litery] then outputChatBox(toprint) else (...) This is my code. Why "if" don't read the table?
  16. Heja! Słuchajcie! Mam przykładowo login gracza "themisiakprostadsg" i chcę, aby zwrócono mi wszystkie litery tego nicku i sprintować to na chacie. Problem w tym, że nie wiem czego użyć, aby pobrać każdą jedną literę z tego stringa. Pętle znam, problem w tym jak użyć czegoś w przedrostkiem string.! Proszę o pomoc.
  17. Hello. I have a problem with this error? CODE: function logujemy(yonsz, usernamel, passwordl) yonsz = exports.DB2:pobierzWyniki("SELECT * FROM ACCS WHERE acc=? AND password=?", usernamel, passwordl) if yonsz.acc and yonsz.password then outputChatBox("LOG!") else outputChatBox("UNLOG") end end addEventHandler("doLogin", getRootElement(), logujemy) What's the problem?
  18. function nadajemypojazd(plr, cmd) pojazd = getPedOccupiedVehicle(plr) vehid = getVehicleID(pojazd) a,b,c = getElementPosition(pojazd) exports.DB2:zapytanie("INSERT INTO bl_test SET marka=vehid,x=a, y=b, z=c") end addCommandHandler("taktak", nadajemypojazd) DS 3: dbPoll failed; Unkown Column 'vehid' in 'field list' Columns are created, mysql database working. What's the problem?
  19. Rat32

    dbConnect

    Hi . I have a problem. I can not connect to the database using the dbConnect . The only thing it shows me dbConnect ; could not connect . And nothing more. Below is a code of dbConnect . Please help. database = dbConnect("mysql", "dbname=db_****;host=mysql-ols1.ServerProject.pl", "db_****","****","share=1") ps. Hosting definitely supports external connection and the data is correct .
  20. Rat32

    Easy error...

    @ALw7SH - not working too. @Dealman - but working , this is no problem.
  21. Rat32

    Easy error...

    Hello. function ballas(cmd, plr) veh = createVehicle(567, 2194.4052734375, -1382.0394287109, 24.62880897522, 0, 0, 90, "DB "..math.random(1,9)..math.random(1,9)..math.random(1,9)..math.random(1.9)) vehm = getElementModel(veh) plr = getLocalPlayer() setElementFrozen(veh, true) tim = getPlayerTeam(plr) teamname = getTeamName(tim) if teamname == getTeamFromName("BALLAS") then setVehicleColor(veh, 128, 0, 192) elseif teamname == getTeamFromName("GROVES") then setVehicleColor(veh, 64, 160, 16) elseif teamname == getTeamFromName("LATINOS") then setVehicleColor(veh, 0, 0, 0) end end addCommandHandler("tests", ballas) This script not changing of vehicle color, why? . Problem with getting team? THIS IS CLIENTSIDE SCRIPT
  22. Rat32

    Elseif

    Hey! I have problem with elseif. He not sending a error-message. Please help . function rejestracja() un = guiGetText(uzytkownik) psw = guiGetText(haslo) auth = guiGetText(powtorzhaslo) if un ~= "" and psw ~= "" then if psw == auth then triggerServerEvent("rejestruj", getLocalPlayer(), un, psw) elseif un ~= "" then exports["notifications"]:showBox("info", "Pole z nazwą użytkownika nie może pozostać puste!") elseif psw ~= "" then exports["notifications"]:showBox("info", "Pole z hasłem nie może pozostać puste!") end end end addEventHandler("onClientGUIClick", rejkaBUTTON, rejestracja, false)
×
×
  • Create New...