limit troops , that fix double troops. Limit is 30 million for enforcement and 10 million for troops

This commit is contained in:
Shadowss
2013-10-13 09:20:52 +03:00
parent e11af8fcdb
commit c2d215c873
+6
View File
@@ -2572,6 +2572,12 @@ class MYSQL_DB {
$result = mysql_query($q, $this->connection);
return mysql_fetch_assoc($result);
}
function getEnforceControllTroops($vid) {
$q = "SELECT * from " . TB_PREFIX . "enforcement where vref = $vid";
$result = mysql_query($q, $this->connection);
return mysql_fetch_assoc($result);
}
function addEnforce($data) {
$q = "INSERT into " . TB_PREFIX . "enforcement (vref,`from`) values (" . $data['to'] . "," . $data['from'] . ")";