Guest Posted February 15, 2008 Share Posted February 15, 2008 I don't understand why the console give me a errors.. This is the code: bindKey(source,"F4","down",playerWannaSpawn) function playerWannaSpawn ( source, key, keyState ) if getElementData( source, "wannaSpawn") == true then outputChatBox("Returning to class selection after next death..", getRootElement(), 0, 255, 0 ) end setElementData( source, "wannaSpawn", true ) if getElementData(source, "wannaSpawn") == true then setTimer( returnToClassSelection, 2000, 1, source ) else fadeCamera ( source, false, 2.0, 17, 119, 17 ) setTimer( SetupPlayerRandomSpawn, 2000, 1, source ) end addEventHandler( "F4", root, OnPlayerDeath ) Link to comment
Atti Posted February 15, 2008 Share Posted February 15, 2008 Please post the exact error and find the line of it. EDIT: addEventHandler( "F4", root, OnPlayerDeath ) This is nothing. bindKey(source,"F4","down",playerWannaSpawn) Are you sure that the source parameter is exact? If you've seen this function in my mode "Massacre DM", please send me your MSN and let's talk about it. Link to comment
Guest Posted February 15, 2008 Share Posted February 15, 2008 Okay any admin can lock this topic have solved on Msn 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