if(($time-$evrg)>3600){ if(rand(10)==0){ $v=rand(5000); $gold+=$v; $log .= "$vG拾った!"; } $evrg=$time; }