- 25
- 1
- Версия MoonLoader
- .026-beta
показывает ид и хп только у 1го т/с и крашится скрипт
ошибка:
[ML] (error) sm.lua: opcode '0227' call caused an unhandled exception
stack traceback:
[C]: in function 'getCarHealth'
C:\Белая сборка by Virzeix — moonloader\moonloader\sm.lua:346: in function 'callback'
...Virzeix — moonloader\moonloader\lib\samp\events\core.lua:77: in function 'process_event'
...Virzeix — moonloader\moonloader\lib\samp\events\core.lua:100: in function 'process_packet'
...Virzeix — moonloader\moonloader\lib\samp\events\core.lua:127: in function <...Virzeix — moonloader\moonloader\lib\samp\events\core.lua:126>
[ML] (error) sm.lua: Script died due to an error. (3FB153F4)
Lua:
function sampev.onVehicleStreamIn(vehId, data)
if settings.settings.vehInfo then
local strveh = ""
if settings.settings.vehInfoId then
strveh = strveh .. "\n{ff004d}ID: {FFFFFF}" .. vehId
end
if settings.settings.vehInfoHp then
strveh = strveh .. "\n{ff004d}HP: {FFFFFF}" .. getCarHealth(vehId)/10
end
sampCreate3dTextEx(vehId, strveh, 0xFFFFFFFF, 0, 0, 0, 100, false, nil, vehId)
end
end
[ML] (error) sm.lua: opcode '0227' call caused an unhandled exception
stack traceback:
[C]: in function 'getCarHealth'
C:\Белая сборка by Virzeix — moonloader\moonloader\sm.lua:346: in function 'callback'
...Virzeix — moonloader\moonloader\lib\samp\events\core.lua:77: in function 'process_event'
...Virzeix — moonloader\moonloader\lib\samp\events\core.lua:100: in function 'process_packet'
...Virzeix — moonloader\moonloader\lib\samp\events\core.lua:127: in function <...Virzeix — moonloader\moonloader\lib\samp\events\core.lua:126>
[ML] (error) sm.lua: Script died due to an error. (3FB153F4)