Lua:
script_name('Autohistory')
local tag = "[FastHISTTEST]: "
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampAddChatMessage(tag.."{C71585}СОКОЛ СКРИПТ БЫЛ ЗАГРУЖЕН",-1)
sampRegisterChatCommand("hist", ima)
while true do
wait(0)
end
end
function ima()
_, id = sampGetPlayerIdByCharHandle(ped)
sampSendChat("/history "..sampGetPlayerNickname(id))
end
Что тут не так? введя в игре команду /hist id игра крашит
Последнее редактирование: