Просмотр файла modules/built/cron/cron_built_iron.asp
<?php include('../../../system/include/settings.inc');//Потключаемся к базе $req = mysql_query("SELECT * FROM `my_construction` WHERE `type` = 'iron'"); while ($cron = mysql_fetch_array($req)) { $req = mysql_query("SELECT * FROM `chars` WHERE `nick` = '".$cron['usr']."'"); $usr = mysql_fetch_array($req); if($cron['usr'] == $usr['nick']) { $iron = $usr['iron'] + $cron['earnings']; mysql_query("UPDATE `chars` SET`iron` = '$iron' WHERE `nick` = '".$cron['usr']."'"); }} ?>