-
Posts
160 -
Joined
-
Last visited
Everything posted by iAxel
-
Hey Bonsai, you can add support blips for your radar? I would be very is grateful
-
а какие еще ЯП есть которые на basic-style
-
[quote name=..&G:..]Download Valhalla gaming roleplay from google and get the resource called 'vgscoreboard' and get the example from there. There's nothing related to rendertarget
-
So it does... You need the position relative to the rendertarget? I need to move objects within rendertarget with the mouse
-
Do not onClientMouseMove for GUI? Updated the code above I need to know the position of the cursor inside RenderTarget
-
https://github.com/StiviiK/mta-sa_lua_utils/blob/master/switch.lua local cond = "var1" switch (cond) { ["var1"] = function () error("var1") end; [false] = function () error("false") end; ["hello"] = function () error("hello") end; ["default"] = function () error("default") end; } -- local i = 6 switch (i) { ["calc!var == 6"] = function () error("var == 6 --> true") end; ["calc!var ~= 6"] = function () error("var ~= 6 --> true") end; ["calc!var > 6"] = function () error("var > 6 --> true") end; -- (...) ["default"] = function () error("default") end; }
-
Много мороки. Да и смысла нет. Юнити это целый движок для игр. На нем пишут самые разные игры, где нужен огромный размах для возможностей... А МТА - клиент к ГТА СА и достаточно одного, который бы развивался хотяб. UPD: Lua обновляется, но не в МТА. Вот пример возьмем проект STALKER Project, проект долго разрабатывается, хотя если была бы поддержка других языков, возможно на нем уже играли бы игроки... Что я сейчас вижу так только костыли для своих задуманных фишек на основных функциях мало что уникальное сделаешь
-
Если хотя бы добавить C# или же C++ может и аудитории прибавиться...
-
Я бы не против кроме Lua ввести и другой язык, ну как в Unity 3D поддержка других языков
-
А в MTA? Последний раз когда обновили версию Lua?
-
I'd like to look
-
Согласен пару функции для Lua не помешает, но вроде же его обновляют или мне так кажись?
-
Is it possible to find the coordinates of the cursor in RenderTarget? getCursorPosition () is not helping, output is wrong x, y coordinates local sW, sH = guiGetScreenSize() local bW, bH = (sW / 2), (sH / 2) local Box = dxCreateRenderTarget(1019, 560, true) local mX, mY = (1019 / 2), (560 / 2) addEventHandler('onClientRender', root, function () if (isLogged(localPlayer)) then if (isVisible) then --Scrollbar dxDrawRectangle(bW - 197, bH - 279 + offset, 5, 170, tocolor(200, 200, 200, 100)) dxDrawRectangle(bW + 503, bH - 279 + offset, 5, 170, tocolor(200, 200, 200, 100)) --Box dxSetRenderTarget(Box, true) for i = 1, 14 do dxDrawRectangle(0, mY - 345 + 65 * i - offset, 309, 60, tocolor(75, 75, 75, 200)) dxDrawImage(0, mY - 345 + 65 * i - offset, 60, 60, ':guieditor/images/plus.png') dxDrawText('Backpack '..i, mX - 439.5, mY - 324 + 65 * i - offset) dxDrawText(i..'/35', mX - 234.5, mY - 345 + 65 * i - offset) dxDrawRectangle(mX + 190.5, mY - 345 + 65 * i - offset, 309, 60, tocolor(75, 75, 75, 200)) dxDrawImage(mX + 190.5, mY - 345 + 65 * i - offset, 60, 60, ':guieditor/images/plus.png') dxDrawText('Backpack '..i, mX + 260.5, mY - 324 + 65 * i - offset) dxDrawText(i..'/35', mX + 465.5, mY - 345 + 65 * i - offset) end dxSetRenderTarget() dxDrawImage(bW - 509, bH - 280, 1019, 560, Box) end end end )
-
Прошу прошение если это смахивало на троллинг) честно не хотел)
-
Блин, вы всегда такие серьезные? Что не так, так сразу друг на друга огрызаетесь хватит уже... Насчет serRuleValue - ну Elengar я думал ты оценишь юмор) но это не как не троль) а так тебе DaKiLLa ответил P.S Возможно я не умею шутит^-^
-
Thank you of course, but I need a start code to understand how it works, please help me this is really necessary
-
Вопросы? Спасибо конечно, но не нужно же так грубо
-
How to do? I need the same thing. To calculate position of the cursor inside RenderTarget
-
Это уже на какой-то жирнейший тролинг похоже... Еще раз задам вопрос(не тебе, всем), который задавал выше: Где именно результаты setRuleValue видно в сервер-браузере ? Original http://imgur.com/IEUPrPI
