Почему жта крашит от этого говнокода?
function ammo(text)
if text:find('%d+ %s+ %d+') then
kolvo, zad = text:match('.+(%d+) %s+ (%d+).+')
elseif text:find('%d+') then
kolvo = text:match('(%d+)')
elseif text == '' then
kolvo = 1
end
if sampIsDialogActive() then
local...