не работает lua

Dellv3r

Новичок
Автор темы
18
0
Версия MoonLoader
.026-beta
Привет всем, что делать если не работает lua?

[21:37:22.348137] (info) Working directory: D:\RADMIR\resources\projects\crmp\moonloader
[21:37:22.348137] (debug) FP Control: 0009001F
[21:37:22.348137] (debug) Game: GTA SA 1.0.0.0 US
[21:37:22.348137] (system) Installing pre-game hooks...
[21:37:22.360570] (system) Hooks installed.
[21:37:23.986369] (debug) Initializing opcode handler table
[21:37:23.986369] (debug) package.path = D:\RADMIR\resources\projects\crmp\moonloader\lib\?.lua;D:\RADMIR\resources\projects\crmp\moonloader\lib\?\init.lua;D:\RADMIR\resources\projects\crmp\moonloader\?.lua;D:\RADMIR\resources\projects\crmp\moonloader\?\init.lua;.\?.lua;D:\RADMIR\resources\projects\crmp\moonloader\lib\?.luac;D:\RADMIR\resources\projects\crmp\moonloader\lib\?\init.luac;D:\RADMIR\resources\projects\crmp\moonloader\?.luac;D:\RADMIR\resources\projects\crmp\moonloader\?\init.luac;.\?.luac
[21:37:23.986369] (debug) package.cpath = D:\RADMIR\resources\projects\crmp\moonloader\lib\?.dll;
[21:37:23.990273] (system) Loading script 'D:\RADMIR\resources\projects\crmp\moonloader\arizona_trash_chat.lua'...
[21:37:23.990273] (debug) New script: 0BFCA814
[21:37:23.993207] (error) arizona_trash_chat.lua: ...esources\projects\crmp\moonloader\arizona_trash_chat.lua:453: ')' expected near 'Ритм'
[21:37:23.993207] (error) arizona_trash_chat.lua: Script died due to an error. (0BFCA814)
[21:37:27.541644] (system) Installing post-load hooks...
[21:37:27.541644] (system) Hooks installed.

if obiyavlenia.v then
if text:find("ТРК "Ритм" ||") and color == 1941201407 then return false end
if text:find("ТРК "Ритм" ||") and text:find("VIP") and not text:find('говорит:') then return false end
end
if obiyavlenia.v then
if text:find("ТРК "Ритм" ||") and color == 1941201407 then return false end
if text:find("ТРК "Ритм" ||") and text:find("VIP") and not text:find('говорит:') then return false end
end

На эти строчки ругается
 
Решение
У меня тогда не будет работать, у меня в объявлениях написано ТРК "Ритм" ||
Lua:
if obiyavlenia.v then
    if text:find('ТРК "Ритм" ||') and color == 1941201407 then return false end
    if text:find('ТРК "Ритм" ||') and text:find("VIP") and not text:find('говорит:') then return false end
end

Dellv3r

Новичок
Автор темы
18
0
Ошибка в коде в районе 453 строки, где-то либо лишняя скобка, либо недостающая.

if obiyavlenia.v then
if text:find("ТРК "Ритм" ||") and color == 1941201407 then return false end
if text:find("ТРК "Ритм" ||") and text:find("VIP") and not text:find('говорит:') then return false end
end

На это ругается
 

Fott

Простреленный
3,431
2,270
if obiyavlenia.v then
if text:find("ТРК "Ритм" ||") and color == 1941201407 then return false end
if text:find("ТРК "Ритм" ||") and text:find("VIP") and not text:find('говорит:') then return false end
end

На это ругается
Lua:
if obiyavlenia.v then
if text:find("ТРК Ритм ||") and color == 1941201407 then return false end
if text:find("ТРК Ритм ||") and text:find("VIP") and not text:find('говорит:') then return false end
end
 

Dellv3r

Новичок
Автор темы
18
0
Lua:
if obiyavlenia.v then
if text:find("ТРК Ритм ||") and color == 1941201407 then return false end
if text:find("ТРК Ритм ||") and text:find("VIP") and not text:find('говорит:') then return false end
end

У меня тогда не будет работать, у меня в объявлениях написано ТРК "Ритм" ||
 

Fott

Простреленный
3,431
2,270
У меня тогда не будет работать, у меня в объявлениях написано ТРК "Ритм" ||
Lua:
if obiyavlenia.v then
    if text:find('ТРК "Ритм" ||') and color == 1941201407 then return false end
    if text:find('ТРК "Ритм" ||') and text:find("VIP") and not text:find('говорит:') then return false end
end
 

Dellv3r

Новичок
Автор темы
18
0
1602357045171.png


Lua:
if obiyavlenia.v then
    if text:find('ТРК "Ритм" ||') and color == 1941201407 then return false end
    if text:find('ТРК "Ритм" ||') and text:find("VIP") and not text:find('говорит:') then return false end
end

Все ровно отправляет одну строку