Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: torbar1
1. TorbaR1 jak naprawic?
Cze??... Mam tu taki kod:


function odloztorbe(plr)
local login getAccountName(getPlayerAccount(plr))
if 
isObiectInACLGroup("user."..login,aclGetGroup("torba"plr)) then
local auto 
getPedOccupiedVehicle(plr)
if 
isPedInVehicle(plrthen
if (getElementModel(auto) == 416) or (getElementModel(auto) == 427) or (getElementModel(auto) == 407then
local torba 
getElementData plr"torba")
destroyElement(torba)
outputChatBox("** Chowasz torb? medyczn?"plr)
outputChatBox("** "..login.." chowa torb? medyczn? do pojazdu"root)
end
end
end
end
addCommandHandler
("odloztorbe"odloztorb


Oczywi?cie ni jest to ca?y ;) ale jest problem bo gdy chc? schowa? torb? to w debugu pisze mi:
Kod:


ERROR: torbar1/torba.lua:20: attempt to call global 'isObjectInACLGroup' (a nil value)
2. torbar1
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...