Тема: RakSAMP Lite
Показать сообщение отдельно

  #5  
Старый 26.05.2024, 15:00
varkon
Участник форума
Регистрация: 28.11.2017
Сообщений: 180
С нами: 4450953

Репутация: 73
По умолчанию

Всем привет.

Код:





Код:
function sampGetListboxItemByText(text, plain)
     if not sampIsDialogActive() then return -1 end
        plain = not (plain == false)
     for i = 0, sampGetListboxItemsCount() - 1 do
         if sampGetListboxItemText(i):find(text, 1, plain) then
             return i
         end
     end
     return -1
end


Выдает ошибку

Код:





Код:
attempt to call global 'sampGetListboxItemsCount' (a nil value)


Помогите, плиз. Есть аналоги на раксамп ?
 
Ответить с цитированием