W who?. Участник Автор темы 56 2 6 Май 2022 #1 Версия MoonLoader .026-beta function sampev.onServerMessage(color,text) как получить из color > HEX что бы можно использовать в {цвет} к премеру sampfuncsLog
function sampev.onServerMessage(color,text) как получить из color > HEX что бы можно использовать в {цвет} к премеру sampfuncsLog
Решение Sidney31 6 Май 2022 Вывод в консоль Lua: function sampev.onServerMessage(color, text) if text:find('.*') then print(bit.tohex(bit.rshift(color, 8), 6)..text) end end
Вывод в консоль Lua: function sampev.onServerMessage(color, text) if text:find('.*') then print(bit.tohex(bit.rshift(color, 8), 6)..text) end end
Sidney31 Известный 1,116 383 6 Май 2022 Решение #2 Вывод в консоль Lua: function sampev.onServerMessage(color, text) if text:find('.*') then print(bit.tohex(bit.rshift(color, 8), 6)..text) end end Позитивный голос 0 Негативный голос Решение
Вывод в консоль Lua: function sampev.onServerMessage(color, text) if text:find('.*') then print(bit.tohex(bit.rshift(color, 8), 6)..text) end end