14.03.2013, 17:58
I'd recommend making a function that you'll call when changing the variable, and inside that function do whatever you want to do.
Example:
Example:
pawn Код:
MyVariableChangeFunction(newvalue)
{
MyVariable = newvalue;
// my stuff
}
// Somewhere when I'm changing the variable:
MyVariableChangeFunction( HERETHEVALUEYOUWANTITTOCHANGETO );