02.03.2011, 14:46
You want "iLastHealed" to be a global variable, as we need the data stored there to be persistant per server instance. Otherwise as soon as the statement is in, is finished executing, all of the values and information stored in that variable will be destroyed. How do you make it global? Take it out of the command and put it at the top of your script to keep things neat and tidey:
When you've put it as a global variable, the stored tickcount of the last successful heal will be there.
pawn Код:
new iLastHealed[MAX_PLAYERS];