Witam mam skrypt na torbe r1 i wyskakuje blad w db3 i nie wiem za bardzo gdzie jest blad ;/
Jak by ktos poprawil bylbym bardzo wdzieczny
[lua]function?weztorba (plr)
local?login?=?getAccountName(getPlayerAccount(plr))
if?sprawdzStrazaka(login)?then
local?auto?=??getPedOccupiedVehicle(plr)
if?isPedInVehicle(plr)?then
if?(getElementModel(auto)?==?489)?or?(getElementModel(auto)?==?407)?or?(getElementModel(auto)?==?416)?then
local?torba?=?createObject(1210,?0,?0,?0,?0,?0,?0)
setElementData?(?plr,?"torba",?torba)
exports.bone_attach:attachElementToBone(torba,plr,12,0,0.1,0.3,0,180,0)
outputChatBox("**?Bierzesz?torb??medyczn?",?plr)
outputChatBox("**?"..login.."?wyci?ga?torb??medyczn??z?pojazdu",?root)
zapiszlog(login.."?wyci?ga?torb??medyczn??z?wozu")
end
end
end
end
addCommandHandler("torba",?weztorba)
-------------------------------------------------
function?odloztorbe(plr)
local?login?=?getAccountName(getPlayerAccount(plr))
if?sprawdzStrazaka(login)?then
local?auto?=?getPedOccupiedVehicle(plr)
if?isPedInVehicle(plr)?then
if?(getElementModel(auto)?==?407)?or?(getElementModel(auto)?==?489)?or?(getElementModel(auto)?==?416)?then
local?torba?=?getElementData?(?plr,?"torba")
destroyElement(torba)
outputChatBox("**?Chowasz?torb??medyczn?",?plr)
outputChatBox("**?"..login.."?chowa?torb??medyczn??do?pojazdu",?root)
zapiszlog(login.."?chowa?torb??me...