Jump to content

UnG//Macaus

Members
  • Posts

    37
  • Joined

  • Last visited

Everything posted by UnG//Macaus

  1. for example, i want to know if a word has 5 letters
  2. UnG//Macaus

    Question

    How can I get the number of letters / characters has a text?
  3. As i Know , there is nothing that is triggering the event, does someone have a idea or solution how to solve this problem ?
  4. I think you have misunderstood the problem I have now addEventHandler("onClientDXClick",getRootElement(), function() if (source == button) then triggerServerEvent("test",localPlayer) --run 2 times (2 outputChatBox) outputChatBox("test") --run 1 time (1 outputChatBox) end end)
  5. Only triggerServerEvent is executed 2 times
  6. now is not repeating more, except for triggerEvents Example: addEventHandler("onClientDXClick",getRootElement(), function() if (source == button) then triggerServerEvent("test",localPlayer) end end) --server addEvent("test",true) addEventHandler("test",getRootElement(), function() outputChatBox ( "TEST", source, 0, 255, 0) end)
  7. Yes, this is the full function I put this line at the top and still have the same problem
  8. I have a problem with my code, everything is working, but the function is executed 2 times when I click on a button. Can someone help me? for id,element_r in ipairs(getElementChildren(dxRootElement)) do for id, element in ipairs(getElementChildren(element_r)) do if getElementData(element,"visible") == true then local g_height = getElementData(element,"height") or 0 local g_width = getElementData(element,"width") or 0 local px, py = dxGetPosition(element) if (button == "left" and state == "up") then if x >= px and x <= (px+g_width) and y >= py and y <= (py + g_height) then triggerEvent("onClientDXClick",element) end end end end end
  9. Anubhav ,what's diffrent betwen your and the code of XeoN?
  10. Doesen't work , still same error ccw check pm.
  11. I use this script to hide blips F11, I do not know if this is the best way to do this but the problem is that wisdom works for all blips. How can I add a table for me to choose the blips that will disappear? addEventHandler("onClientResourceStart", getRootElement(), function() setTimer(function() local localX, localY = getElementPosition(localPlayer) for _, blip in pairs(getElementsByType("blip")) do local blipX, blipY = getElementPosition(blip) if(getDistanceBetweenPoints2D(localX, localY, blipX, blipY) > 500) then local icon = getElementData(blip, "IconID") if not icon then setElementData(blip, "IconID", getBlipIcon(blip), false) end setBlipIcon(blip, 0) setBlipColor(blip, 255, 255, 255, 0) else local icon = getElementData(blip, "IconID") if icon then setBlipIcon(blip, icon) end end end end, 500, 0) end)
  12. Still doesen't work. dpkg: unknown option --add-architecture Type dpkg --help for help about installing and deinstalling packages [*]; Use `dselect' or `aptitude' for user-friendly package management; Type dpkg -Dhelp for a list of dpkg debug flag values; Type dpkg --force-help for a list of forcing options; Type dpkg-deb --help for help about manipulating *.deb files; Options marked [*] produce a lot of output - pipe it through `less' or `more' ! root@9tcyndxp2e:~# apt-get update Hit [url=http://security.debian.org]http://security.debian.org[/url] squeeze/updates Release.gpg Ign [url=http://security.debian.org/]http://security.debian.org/[/url] squeeze/updates/contrib Translation-en Ign [url=http://security.debian.org/]http://security.debian.org/[/url] squeeze/updates/main Translation-en Ign [url=http://security.debian.org/]http://security.debian.org/[/url] squeeze/updates/non-free Translation-en Hit [url=http://security.debian.org]http://security.debian.org[/url] squeeze/updates Release Hit [url=http://security.debian.org]http://security.debian.org[/url] squeeze/updates/main amd64 Packages Hit [url=http://security.debian.org]http://security.debian.org[/url] squeeze/updates/contrib amd64 Packages Hit [url=http://security.debian.org]http://security.debian.org[/url] squeeze/updates/non-free amd64 Packages Hit [url=http://http.debian.net]http://http.debian.net[/url] squeeze Release.gpg Ign [url=http://http.debian.net/debian/]http://http.debian.net/debian/[/url] squeeze/contrib Translation-en Ign [url=http://http.debian.net/debian/]http://http.debian.net/debian/[/url] squeeze/main Translation-en Ign [url=http://http.debian.net/debian/]http://http.debian.net/debian/[/url] squeeze/non-free Translation-en Hit [url=http://http.debian.net]http://http.debian.net[/url] squeeze Release Hit [url=http://http.debian.net]http://http.debian.net[/url] squeeze/main amd64 Packages Hit [url=http://http.debian.net]http://http.debian.net[/url] squeeze/contrib amd64 Packages Hit [url=http://http.debian.net]http://http.debian.net[/url] squeeze/non-free amd64 Packages Reading package lists... Done root@9tcyndxp2e:~# dpkg --add-architecture i386 dpkg: unknown option --add-architecture Type dpkg --help for help about installing and deinstalling packages [*]; Use `dselect' or `aptitude' for user-friendly package management; Type dpkg -Dhelp for a list of dpkg debug flag values; Type dpkg --force-help for a list of forcing options; Type dpkg-deb --help for help about manipulating *.deb files; Options marked [*] produce a lot of output - pipe it through `less' or `more' ! root@9tcyndxp2e:~# cd multitheftauto_linux* root@9tcyndxp2e:~/multitheftauto_linux-1.4.0# ./mta-server -bash: ./mta-server: No such file or directory root@9tcyndxp2e:~/multitheftauto_linux-1.4.0# Debian -- Security Information security.debian.org
  13. Hello there, I have problems while creating a mta server on my Debain 7.0 Linux VPS , i did everything from the manual of wiki. But i can't start my server. root@9tcyndxp2e:~# rm multitheftauto_linux-1.4.0.tar.gz root@9tcyndxp2e:~# wget [url=http://linux.multitheftauto.com/dl/140/multitheftauto_linux-1.4.0.tar.gz]http://linux.multitheftauto.com/dl/140/multithef ... 4.0.tar.gz[/url] --2014-10-15 17:15:23-- http://linux.multitheftauto.com/dl/140/multitheftauto_linux-1.4.0.tar.gz Resolving linux.multitheftauto.com... 46.105.46.97, 2a01:4f8:a1:221::11 Connecting to linux.multitheftauto.com|46.105.46.97|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 3508992 (3.3M) [application/x-gzip] Saving to: `multitheftauto_linux-1.4.0.tar.gz' 100%[======================================>] 3,508,992 859K/s in 4.2s 2014-10-15 17:15:27 (821 KB/s) - `multitheftauto_linux-1.4.0.tar.gz' saved [3508992/3508992] root@9tcyndxp2e:~# tar -xf multitheftauto_linux-1.4.0.tar.gz root@9tcyndxp2e:~# cd multitheftauto_linux-1.4.0 root@9tcyndxp2e:~/multitheftauto_linux-1.4.0# ./mta-server -bash: ./mta-server: No such file or directory root@9tcyndxp2e:~/multitheftauto_linux-1.4.0# I tried realy everything , i can't fix this problem alone so i'm asking for help. Regards.
  14. I tried to use this example, but I can not get a jetpack through it, but I can remove the jetpack through the command. Anyone know another geito to do this? https://wiki.multitheftauto.com/wiki/RemovePedJetPack
  15. UnG//Macaus

    Help

    , Now when I start the resource I got this error: WARNING: Script 'script.lua' is not encoded in UTF-8. Loading as ANSI... can someone help me?
  16. UnG//Macaus

    Help

    working, thank you very much
  17. UnG//Macaus

    Help

    How can I add color codes in my text? I tried this but does not work function dxDrawBorderedText(text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded) text_ = text:gsub ( "#%x%x%x%x%x%x", "" ) dxDrawText(text_, x - 0.6, y - 0.6, w - 0.6, h - 0.6, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, false, true) dxDrawText(text_, x + 0.6, y - 0.6, w + 0.6, h - 0.6, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, false, true) dxDrawText(text_, x - 0.6, y + 0.6, w - 0.6, h + 0.6, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, false, true) dxDrawText(text_, x + 0.6, y + 0.6, w + 0.6, h + 0.6, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, false, true) dxDrawText(text_, x - 0.6, y, w - 0.6, h, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, false, true) dxDrawText(text_, x + 0.6, y, w + 0.6, h, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, false, true) dxDrawText(text_, x, y - 0.6, w, h - 0.6, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, false, true) dxDrawText(text_, x, y + 0.6, w, h + 0.6, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, false, true) dxDrawText(text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded) end dxDrawBorderedText(Text, x*150, y*540, x*1400, y*385, tocolor(255, 255, 255, 255), x*2.4, x*2.4, "clear", "center", "center", false, false, true, true)
  18. moving = false closed = true movetime = 968 function openGate(player) if getElementType(player) == "player" then if getPlayerTeam(player) ~= getTeamFromName("Police") then return end if not moving and closed then moveObject(objeto,3000, 1541.0999755859, -1627.6999511719, 9.4) moving = true closed = false setTimer(function() moving = false end, movetime, 1) end end end addEventHandler("onMarkerHit", Zona, openGate) function closeGate(player) if getElementType(player) == "player" then if getPlayerTeam(player) ~= getTeamFromName("Police") then return end if not moving and not closed then moveObject(objeto, 3000, 1541.0999755859, -1627.6999511719, 15.199999809265) moving = true closed = true setTimer(function() moving = false end, movetime, 1) end end end addEventHandler("onMarkerLeave", Zona, closeGate) Works fine, thank XeoN-
  19. Now besides having the same errors, the gate apre for others who are not in the Police team
  20. I have no error in debugscript, and when I go up to the marker does not open the gate
×
×
  • Create New...