Monty Posted October 20, 2012 Share Posted October 20, 2012 what's wrong with this function? function arrestNumber() playeraccount = getPlayerAccount( source ) arrestnumber = getAccountData( playeraccount, "arrestn" ) outputChatBox( "you got"..arrestnumber.."arrests", source, 100, 149, 237 ) end addCommandHandler( "arrest" , arrestNumber ) Link to comment
Guest Guest4401 Posted October 20, 2012 Share Posted October 20, 2012 function arrestNumber(player) playeraccount = getPlayerAccount( player ) arrestnumber = getAccountData( playeraccount, "arrestn" ) outputChatBox( "you got"..arrestnumber.."arrests", player, 100, 149, 237 ) end addCommandHandler( "arrest" , arrestNumber ) Link to comment
Castillo Posted October 20, 2012 Share Posted October 20, 2012 what's wrong with this function? function arrestNumber() playeraccount = getPlayerAccount( source ) arrestnumber = getAccountData( playeraccount, "arrestn" ) outputChatBox( "you got"..arrestnumber.."arrests", source, 100, 149, 237 ) end addCommandHandler( "arrest" , arrestNumber ) You don't have 'source' defined anywhere. 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