Регулярка

Статус
В этой теме нельзя размещать новые ответы.

LelHack

Известный
Автор темы
456
124
Версия MoonLoader
Другое
Сделайте пожалуйста регулярку для

Код:
Администратор Nathaniel_Walker[497]: Да.

Вот код не работает(

Код:
function sampev.onServerMessage(color, text)
    lua_thread.create(function()
        if colokol == true then
            if text:match("^Администратор .-%[%d%d?%d?%]: ") then
                wait(500)
                setAudioStreamState(audio, 1)
                setAudioStreamVolume(audio, 100)
                local memory = require "memory"
                printString('~r~ PRESS R', 20000)
                memory.setuint8(7634870, 0, false)
                memory.setuint8(7635034, 0, false)
                memory.hex2bin('0F 84 7B 01 00 00', 7623723, 8)
                memory.hex2bin('50 51 FF 15 00 83 85 00', 5499528, 6)       
            end
        end
    end)
end
 

LelHack

Известный
Автор темы
456
124
Администратор .+%[%d+]: .+
Можешь ещё помочь. Как разместить картинку в imgui по центру?
Вот кодик
Код:
      if not sampgui_texture then
        if doesFileExist(getGameDirectory() .. '\\apple.png') then
            sampgui_texture = imgui.CreateTextureFromFile(getGameDirectory() .. '\\apple.png')
            if not sampgui_texture then
                imgui.OpenPopup('Texture Loading Error')
            end
        else
            imgui.OpenPopup('Texture Loading Error')
        end
    elseif sampgui_texture then
        imgui.Image(sampgui_texture, imgui.ImVec2(150, 100))
    end
 
Статус
В этой теме нельзя размещать новые ответы.