Jump to content

_Dark_

Members
  • Posts

    473
  • Joined

  • Last visited

Everything posted by _Dark_

  1. This means radius. 1469.9957275391,-2291.0270996094,14.690351486206 is the center of circle. This means, thats objects will be removed in 3000 units of center.
  2. Wow, I looked screenshots, awesome, very nice!
  3. Oh, I always confuse them By subject: local str = "2152+242/231" local result = loadstring("return "..str)() -- this is your math result
  4. I know, this is Galaxy Ace with Android 2.3
  5. Аналогичное мнение.
  6. Sorry for offtopic, but: You want make Android in MTA?
  7. Я не понял вашего вопроса, что значит Ресурс - папка или .ZIP архив, содержащий файлы и meta файл. Если по аналогии, то это как программа в ОС, он может быть запущен, остановлен, несколько ресурсов могут работать одновременно. P.S. Это совершенно новый уровень был бы совершенно новым там, в SAMPе, здесь этим никого не удивить.
  8. _Dark_

    can't use ~=

    Stop. In this topic you shown your Lua experience. Operator NOT also invert value. You must know this.
  9. _Dark_

    can't use ~=

    Ok. "not" isn't only means "condition == false/nil".
  10. _Dark_

    can't use ~=

    NOT not only equal operator.
  11. _Dark_

    can't use ~=

    local a = 5 local b = 10 if(a ~= b) then -- NOT EQUAL -- code end showCursor(not isCursorShowing()) -- INVERSION Maybe you post your code?
  12. Oh... Why 100,000? Enough even 3000.
  13. setTimer( function() fadeCamera( true ) triggerServerEvent("Airporting", localPlayer) end, 6000, 6) -- Six times Timer will repeat 6 times. Change 6 to 1.
  14. You're welcome. If you use UTF-8 with BOM in the beginning of the file will be invisible special characters that are incorrectly recognized by Lua.
  15. Yes, you can do it in Notepad++. Note: you should save file as UTF-8 without BOM.
  16. Если у вас сервер под Linux ВСЕ файлы ресурсов должны быть в кодировке UTF-8 БЕЗ BOM. Вам и в консоли это пишет.
  17. Try save resource's files as UTF-8.
  18. denny199, I didn't say anything to you personally.
  19. 1 second timer for updating player game time? Bad.
  20. My function works fine. addEventHandler('onClientResourceStart', getResourceRootElement(), function() setTimer( function() exports.GUI:show('welcome') -- this is my function for showing GUI end, 5000, 1 ) bindKey("F1", "down", function() if(isAnyGUIOpen()) then outputChatBox("Open") else outputChatBox("Close") end end) end ) function isAnyGUIOpen() local gui = getElementsByType('gui-window') for _, v in ipairs(gui) do if(guiGetVisible(v)) then return true end end return false end I pressed F1 twice. For the first time it output close, after 5 seconds (when the GUI window appears) - Open.
  21. function isAnyGUIWindowOpen() local gui = getElementsByType('gui-window') -- get all created GUI windows for _, v in ipairs(gui) do if(guiGetVisible(v)) then return true end end return false end
  22. viewtopic.php?f=91&t=45898
×
×
  • Create New...