From 483e0b5cf576498500d32c1151a9b346d726dd28 Mon Sep 17 00:00:00 2001 From: yi12345 Date: Mon, 17 Jun 2013 00:52:46 +0300 Subject: [PATCH] update create_account.php --- create_account.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/create_account.php b/create_account.php index aaee852b..05e61bf2 100644 --- a/create_account.php +++ b/create_account.php @@ -126,12 +126,13 @@ if($_POST['password'] != ""){ * SCOUTING ALL PLAYERS */ + $natar = mysql_fetch_array(mysql_query("SELECT * FROM " . TB_PREFIX . "vdata WHERE owner = $uid and capital = 1")); $multiplier = NATARS_UNITS; $q = "SELECT * FROM " . TB_PREFIX . "vdata WHERE capital = 1 and owner > 5"; $array = $database->query_return($q); foreach($array as $vill){ - $ref = $database->addAttack($wid, 0, 0, 0, 1500*$multiplier, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 20, 0, 0, 0, 0); - $database->addMovement(3, $wid, $vill['wref'], $ref, time(), time()+1); + $ref = $database->addAttack($natar['wref'], 0, 0, 0, 1500*$multiplier, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 20, 0, 0, 0, 0); + $database->addMovement(3, $natar['wref'], $vill['wref'], $ref, time(), time()+1); } /**