Create a variable equal to the current value of another variable (create a constant)
#10

Quote:

"const

new const
MY_CONSTANT[] = {1, 2, 3};
const is not widerly used however it declares a variable which can not be modified by code. There are a few uses for this - functions with const array parameters can sometimes be compiled more efficiently or you may want something like a define but which is an array. const is a modifier, it must go with new or another variable declarator. If you try modify a const variable the compiler will complain."

Also why are you making 8 variables when you can make just 4..
Just make the variables for getpos and then use them to set his position..
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)