Questions tagged [Lua] (164)

0
answer

GLua: Why not painting the hood at the entrance to the map?

I wrote a simple hood, like errors is not present, well only 1, but it's kind of like a baby :) Here is the code: if !ply:IsValid() then return end hp = ply:Health() if hp < 0 then hp = 0 end mx = ply:GetMaxHealth() ar = ply:Armor() if ar == 0 then ar = "; ar2 = 0 else ar2 = ar end sh = '/' am = ply:GetActiveW...
Donna29 asked April 19th 20 at 12:43
1
answer

How to optimize the hood (GLua)?

Please tell me, 2 minutes after connection to the server fps drops from 120 to 16. Tell me how to optimize the hood. Code: surface.CreateFont( "HUD", { font = "TargetID", extended = false, size = 18, weight = 600, blursize = 0, scanlines = 0, antialias = true, underline = false, italic = false, strikeout = false, ...
elton_Collier47 asked April 16th 20 at 11:03
1
answer

Why corona sdk error?

local widget = require("widget") -- the background of the app display.setDefault("background", 37/255, 39/255, 46/255) -- color the default text display.setDefault("fillColor", 0) number = 9; numberMinusButton = widget.newButton { shape = 'roundedRect', -- form buttons raidus = 5, -- radius of corners width = 60, heig...
Jerad.Pfeffer asked April 16th 20 at 10:45
0
answer

How to implement chat?

There is the principle of the chat, but I don't know how to do in php so that when the user request was made the update message and the output FROM WHO is this message (do it via queries from Lua script)
Alessia_Parker asked April 16th 20 at 10:22
0
answer

How to understand lua_code_cache &amp; content_by_lua_file why not work if you enable the cache?

Greetings, help to understand how lua_code_cache. Location nginx: location ~ ^/page/(\d+)/(\d+) { # items, page number default_type 'text/html'; content_by_lua_file $template_root/index.lua; lua_code_cache off; } index.lua : local http = require "resty.http" local httpc = http.new() local cjson = require "cjson" local...
gerard80 asked April 8th 20 at 09:59
0
answer

Application mediacentr iconobit apk, which section of the programming is? It includes a separate built-in plugins are written in lua?

App Mediacentr iconbit apk, the structure of the shell has a built-widgets-plugins are written in LUA. What kind of programming support? Something like that people write in their projects? Something similar applies CHAPTERS.TV, such zamudrennye application, you can not overpower an experienced user using the online designer...
stuart98 asked April 8th 20 at 09:21
1
answer

I want to learn to write code for plugins in the lua language. Which forum developers subscribe to the I need material?

Want to learn to code to write plugins, I want to revive video services in Mediacentr.iconbit. In this question the full zero, I ask your help where to start to implement it.
Miracle_Satterfield asked April 8th 20 at 02:19
1
answer

Dynamically adding the ip with the mysql upstream in nginx?

Good afternoon. The question arose. It is necessary to dynamically add ip addresses with thumb in nginx, cecati every 15 minutes dB. Option 2. Bad code, write the database in the file IPSec and a script that will pull the file. The second option is advised to look aside lua. With this programming language I'm not familia...
llewellyn.Koe asked April 7th 20 at 10:32
1
answer

After Assembly, nginx crashes signal 11?

Hi. The last two times collected latest nginx, that the first, the second error is the same. First collected 4 months ago, now the error persists, but the version of nginx has been updated. The error itself: 2020/02/04 23:13:07 [alert] 18028#18028: 22877 worker process exited on signal 11 2020/02/04 23:13:08 [alert] 18028#1...
Helga asked April 7th 20 at 09:48
1
answer

How to remove objects in corona?

I have a game on corona.And I need to remove objects that went beyond the screen how to do it?I searched through the Internet but he failed to do it what to do?
Mona.Kuvalis36 asked April 7th 20 at 09:17