Reezmi Posted July 13, 2013 Share Posted July 13, 2013 So i have these warnings 'Bad argument'. I know its something simple but I dont seem to get where is the problem. WARNING: cnr\cinematic.lua:10: Bad argument @ 'fadeCamera' WARNING: cnr\cinematic.lua:11 Bad argument @ 'triggerEvent' [Expected element at argument 2, got nil] function cinematicStart () fadeCamera(source, true, 3) setCameraMatrix(source, -1582.3032226563,1428.5544433594,27.856924057007, -1608.2902832031,1537.4611816406,0.59548205137253) setTimer ( cinematicEnd, 10000, 1, player ) end addEvent ( "onCinematicStart", true ) addEventHandler ( "onCinematicStart", root, cinematicStart ) function cinematicEnd () fadeCamera(player, false, 3) setTimer (triggerEvent, 3000, 1, "onRegisterSpawn", player) end addEventHandler ( "onCinematicEnd", root, cinematicEnd ) Link to comment
DiSaMe Posted July 13, 2013 Share Posted July 13, 2013 Variable "player" is not defined. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now