MartinPanZycia
Zielony w LUA
Wiek: 27 Na forum: 3728 dni Posty: 476
Nick w MP: Rodzaje
Piwa : 878
Bad argument @ 'Bindkey' [Expected player at argument 1, got table]
potrzebuje pomocy
to s-side
a to
bindKey ( players , "mouse1" , "down" , function ( player )
nie podoba si? wi?c potrzebuj? pomicy
function fanFunction ()
players = getElementsByType ( "player" )
for theKey , thePlayer in ipairs ( players ) do
bindKey ( players , "mouse1" , "down" , function ( player )
CzesciBurgera = getElementData ( player , "Kesy" ) or 0
if CzesciBurgera > 0 then
outputChatBox ( "*****?e? k?sa ty cipo" , player , 225 , 0 , 0 , true )
setElementHealth ( player , getElementHealth ( player ) + 20 )
exports .global: applyAnimation ( player , "FOOD" , "EAT_Burger" , 4000 , false , true , true )
jedzenie = createObject ( 1271 , 0 , 0 , 0 )
attachElements ( jedzenie , player , - 0.087 , 0.74 , 0.55 )
setElementData ( player , "Kesy" , CzesciBurgera - 1 )
else
outputChatBox ( "To by? ostatni k?s w burgerze, zapamietaj go" , 225 , 225 , 0 )
setElementHealth ( player , getElementHealth ( player ) + 20 )
destroyElement ( jedzenie )
end
end )
end
end
addEventHandler ( "onResourceStart" , getRootElement (), fanFunction )
Podpis
Cześć w MTA jestem jako Rodzaje.
Wszystko jest po staremu nie zamierzam stawiać RPG.