Ищу sellgun на луа для rodina rp

Robert_United

Известный
Автор темы
74
4
Версия SA-MP
  1. CR-MP 0.3.7
Нужен луашник для rodina rp.
Суть: при вводе команды
/de [количество] будет автоматом писать /sellgun myid deagle количество
/us [количество] будет автоматом писать /usedrugs [количество]

update: Дайте исходник
 
Последнее редактирование:
Решение
moonloader\afd.lua:6: attempt to concatenate a boolean value


s:
function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end
    sampRegisterChatCommand('de', function(ammo)
        if ammo:find('%d+') and tonumber(ammo) > 0 then
            sampSendChat('/sellgun '..myid..' deagle '..ammo)
        end
    end)
    sampRegisterChatCommand('us', function(skoka)
        if skoka:find('%d+') and tonumber(skoka) > 0 then
            sampSendChat('/usedrugs '..skoka)
        end
    end)
    while true do
        wait(0)
        result, myid = sampGetPlayerIdByCharHandle(PLAYER_PED)
    end
end
?
Lua:
function main()
    if not isSampLoaded() or not...

XRLM

Известный
2,537
852
Lua:
function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end
    sampRegisterChatCommand('de', function(ammo)
        if ammo:find('%d+') and tonumber(ammo) > 0 then
            sampSendChat('/sellgun '..sampGetPlayerIdByCharHandle(PLAYER_PED)..' deagle '..ammo)
        end
    end)
    sampRegisterChatCommand('us', function(skoka)
        if skoka:find('%d+') and tonumber(skoka) > 0 then
            sampSendChat('/usedrugs '..skoka)
        end
    end)
    wait(-1)
end
 
  • Клоун
Реакции: Air_Official

Kirkjubaijaarklaustur

Известный
378
125
Lua:
function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end
    sampRegisterChatCommand('de', function(ammo)
        if ammo:find('%d+') and tonumber(ammo) > 0 then
            sampSendChat('/sellgun '..sampGetPlayerIdByCharHandle(PLAYER_PED)..' deagle '..ammo)
        end
    end)
    sampRegisterChatCommand('us', function(skoka)
        if skoka:find('%d+') and tonumber(skoka) > 0 then
            sampSendChat('/usedrugs '..skoka)
        end
    end)
    wait(-1)
end
moonloader\afd.lua:6: attempt to concatenate a boolean value


s:
function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end
    sampRegisterChatCommand('de', function(ammo)
        if ammo:find('%d+') and tonumber(ammo) > 0 then
            sampSendChat('/sellgun '..myid..' deagle '..ammo)
        end
    end)
    sampRegisterChatCommand('us', function(skoka)
        if skoka:find('%d+') and tonumber(skoka) > 0 then
            sampSendChat('/usedrugs '..skoka)
        end
    end)
    while true do
        wait(0)
        result, myid = sampGetPlayerIdByCharHandle(PLAYER_PED)
    end
end
?
 
  • Грустно
Реакции: XRLM

kholmogor

Новичок
22
4

Вложения

  • NewCleo.cs
    22 KB · Просмотры: 8

XRLM

Известный
2,537
852
moonloader\afd.lua:6: attempt to concatenate a boolean value


s:
function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end
    sampRegisterChatCommand('de', function(ammo)
        if ammo:find('%d+') and tonumber(ammo) > 0 then
            sampSendChat('/sellgun '..myid..' deagle '..ammo)
        end
    end)
    sampRegisterChatCommand('us', function(skoka)
        if skoka:find('%d+') and tonumber(skoka) > 0 then
            sampSendChat('/usedrugs '..skoka)
        end
    end)
    while true do
        wait(0)
        result, myid = sampGetPlayerIdByCharHandle(PLAYER_PED)
    end
end
?
Lua:
function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end
    sampRegisterChatCommand('de', function(ammo)
        if ammo:find('%d+') and tonumber(ammo) > 0 then
            sampSendChat('/sellgun '..select(2, sampGetPlayerIdByCharHandle(PLAYER_PED))..' deagle '..ammo)
        end
    end)
    sampRegisterChatCommand('us', function(skoka)
        if skoka:find('%d+') and tonumber(skoka) > 0 then
            sampSendChat('/usedrugs '..skoka)
        end
    end)
    wait(-1)
end
забыл что sampGetPlayerIdByCharHandle отдает 2 значения