*This is the code bit i'm trying to use...* PHP: --------- $last_update=time(16:31:00); $timenow=time(16:30:00); $time_between_updates=60; if(($last_update+$time_between_updates)>$timenow){ ...
This is the code bit i'm trying to use...
PHP Code:
$last_update=time(16:31:00);
$timenow=time(16:30:00);
$time_between_updates=60;
if(($last_update+$time_between_updates)>$timenow){
$updates=($timenow-$last_update)/$time_between_updates;
$next_update=$timenow+($updates*$time_between_updates);
$turns=$turns+10
But this is not working out, what i need is something that will add 10 turns to the users turn amount after every hour..
So i once again seek the collective wisdom of TSG