How can I declare a variable as the 100% of another variable?
Example:
var amount : int = 30;
var percent : int = 100;
Percent variable must be the same as the amount variable.
Example:
percent = percent / 2; (30:2=15, so percent must be 15 now)
↧