- 120
- 20
- Версия MoonLoader
- .026-beta
Lua:
function bullet(playerid)
local data = samp_create_sync_data('bullet', false)
data.targetType = 1
data.targetId = playerid
data.origin.x, data.origin.y, data.origin.z = getActiveCameraCoordinates()
data.target.x, data.target.y, data.target.z = target_x, target_y, target_z -- на эту строчку ругается
data.weaponId = getCurrentCharWeapon(PLAYER_PED)
data.send()
sampAddChatMessage("Пуля отправлена [" .. playerid .. "] успешна.", 0xFFFF00)
end
[ML] (error) chlen: H:\GTA San Andreas - Copy\moonloader\chlen.lua:8024: cannot convert 'nil' to 'float'
stack traceback:
H:\GTA San Andreas - Copy\moonloader\chlen.lua: in function 'bullet'
H:\GTA San Andreas - Copy\moonloader\chlen.lua:2531: in function <H:\GTA San Andreas - Copy\moonloader\chlen.lua:2530>
stack traceback:
[C]: in function 'create'
H:\GTA San Andreas - Copy\moonloader\chlen.lua:2530: in function <H:\GTA San Andreas - Copy\moonloader\chlen.lua:2529>
[ML] (error) chlen: Script died due to an error. (136FF394)