variable help

Posted:
Mon Dec 13, 2010 12:32 am
by Imperialjester
ok i have a variable problem. im trying to makeone variable equal half of another variable.
like it money equals 300 then points equals 150.
please help.
Re: variable help

Posted:
Mon Dec 13, 2010 12:37 am
by skydereign
I assume you have two variables, var1 and var2.
- Code: Select all
var1 = var2/2;
So this sets var1 equal to half of var2.
Re: variable help

Posted:
Mon Dec 13, 2010 1:15 am
by Imperialjester
thank you i added to your points =]