Jump to content

[HELP] WHY THIS DON'T WORKING?


Pedro Silveira

Recommended Posts

Hello, im trying to make this:

function verificar12 ( l_5_0 )
	anim1, anim2 = getPedAnimation( l_5_0 )
    if ( getElementInterior( l_5_0 ) == 1 ) then
		if ( anim1 == "shop" and anim2 == "shp_serve_loop" ) then
			givePlayerMoney ( l_5_0, 10000 )
		else
			outputChatBox("Você parou de roubar o caixa e não pegou nenhum dinheiro!", l_5_0, 255, 0, 0)
		end
    else
		outputChatBox("Você saiu da loja e o dinheiro foi devolvido!", l_5_0, 255, 0, 0)
    end
end

I call the function in this part:

setTimer(verificar12, 90000, 1, l_5_0)

But is returning this message:

"ERROR: [SCRIPT]RoubarLojas\server.lua:27: attempt to call global 'getPedAnimation' <a nil value>"

WHY?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...