Вы используете устаревший браузер. Этот и другие сайты могут отображаться в нём некорректно. Вам необходимо обновить браузер или попробовать использовать другой.
function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand("random", function()
sampAddChatMessage("Твое число:", -1)
end)
wait(-1)
end
Дополните пожалуйста что бы после двоеточия было рандомное число от 1 до 500
math.randomseed(os.clock())
function main()
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand("random",function ()
sampAddChatMessage(string.format("your random number: %d",math.random(1,500)), -1)
end)
wait(-1)
end
math.randomseed(os.clock())
function main()
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand("random",function ()
sampAddChatMessage(string.format("your random number: %d",math.random(1,500)), -1)
end)
wait(-1)
end