06.08.2012, 13:43
Thanks all !
But the second question I will explain with codes
1)
2)
What is the best for optimize my timer? Or it is the same?
Sorry for my english
But the second question I will explain with codes
1)
PHP код:
new Vtime;// On Top GM
1secondTimer()
{
VTime++;
If(Vtime >= 5)
{
Vtime = 0;
//code....
}
return 1;
}
PHP код:
new VTime = -1;
Vtime = gettime();
1secondTimer()
{
if(Vtime > 0 && Vtime < gettime() - 5)
{
Vtime = -1;
// code....
}
return 1;
}
Sorry for my english