tigerman Posted June 26, 2011 Share Posted June 26, 2011 Hey, theres my code; Numberr = 0 --- < how to change this with command ? function EditNumber(pla,cmd,number) Numberr = number setTimer(NumberValue,1000,1) end addCommandHandler("editnumber",EditNumber) function NumberValue(Numberr) outputChatBox("Number is"..tostring(Numberr)) end and now the question is how to change upper Numberr that Numberr would be equal to number Link to comment
JR10 Posted June 26, 2011 Share Posted June 26, 2011 Numberr = 0 --- < how to change this with command ? function EditNumber(pla,cmd,number) Numberr = tonumber(number) setTimer(NumberValue,1000,1) end addCommandHandler("editnumber",EditNumber) function NumberValue(Numberr) outputChatBox("Number is"..tostring(Numberr)) end 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