Jump to content

Need help with scripting


tigerman

Recommended Posts

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
   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

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...