люблю луа

Lance_Sterling

Известный
Автор темы
1,018
375
Версия MoonLoader
.026-beta
есть форма, мне надо сделать условия для ошибок
но вот не задача блять когда в тексте есть ник то бабах назуй скрипт его не замечает
код:
Код:
sampRegisterChatCommand("test", function()
        test = 'offprison Porn_Hub'
        if test == 'offprison' then
            sampAddChatMessage('ti lox1', -1)
        elseif test == 'offprison ' then
            sampAddChatMessage('ti lox2', -1)
        elseif test == 'offprison %w+_%w+' then
            sampAddChatMessage('ti lox3', -1)
        elseif test == 'offprison %w+_%w+ ' then
            sampAddChatMessage('ti lox4', -1)
        elseif test == 'offprison %w+_%w+ %d+' then
            sampAddChatMessage('ti lox5', -1)
        elseif test == 'offprison %w+_%w+ %d+ ' then
            sampAddChatMessage('ti lox6', -1)
        else
            sampAddChatMessage('ti lox', -1)
        end
    end)