21.10.2009, 09:20
Is there a public like OnPlayerUpdate, but then one that can handle a lot of code??
forward ThisTimer()
public ThisTimer()
{
//enter code here
}
SetTimer("ThisTimer", //Time amount(remove this comment and put the time here), //True or false? Does it rerun or not? make sure to put code here);
CurrentVal = dini_Int(file, "Val");
valCalc = (CurrentVal/5); if(Valcalc == 100) { TextDrawSetString(ValBar[playerid],".........."); return 1; }
forward ValTimer(playerid);
SetTimer("ValTimer", 1000, true);