[help]OnPlayerUpdate uses
#2

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:

pawn Код:
MyVariableChangeFunction(newvalue)
{
    MyVariable = newvalue;
   
    // my stuff
}

// Somewhere when I'm changing the variable:

MyVariableChangeFunction( HERETHEVALUEYOUWANTITTOCHANGETO );
Reply


Messages In This Thread
[help]OnPlayerUpdate uses - by Mrich - 14.03.2013, 17:54
Re: [help]OnPlayerUpdate uses - by LarzI - 14.03.2013, 17:58
Re: [help]OnPlayerUpdate uses - by MP2 - 14.03.2013, 17:58
Re: [help]OnPlayerUpdate uses - by [ABK]Antonio - 14.03.2013, 18:03
Re: [help]OnPlayerUpdate uses - by Mrich - 14.03.2013, 18:15
Re: [help]OnPlayerUpdate uses - by Vince - 14.03.2013, 18:36
Re: [help]OnPlayerUpdate uses - by Mrich - 14.03.2013, 18:41
Re: [help]OnPlayerUpdate uses - by LarzI - 14.03.2013, 19:15
Re: [help]OnPlayerUpdate uses - by Mrich - 14.03.2013, 19:18

Forum Jump:


Users browsing this thread: 1 Guest(s)