now can see error when try to send more resources than your merchants max carry

This commit is contained in:
unknown
2012-05-24 16:10:57 +03:00
parent d583f7c680
commit 2419057940
+1 -1
View File
@@ -200,7 +200,7 @@ if(isset($_POST['ft'])=='check'){
$error = '<span class="error"><b>Resources not selected.</b></span>'; $error = '<span class="error"><b>Resources not selected.</b></span>';
}elseif(!$_POST['x'] && !$_POST['y'] && !$_POST['dname']){ }elseif(!$_POST['x'] && !$_POST['y'] && !$_POST['dname']){
$error = '<span class="error"><b>Enter coordinates or village name.</b></span>'; $error = '<span class="error"><b>Enter coordinates or village name.</b></span>';
}elseif($allres <= $market->maxcarry){ }elseif($allres > $market->maxcarry){
$error = '<span class="error"><b>Too few merchants.</b></span>'; $error = '<span class="error"><b>Too few merchants.</b></span>';
} }
echo $error; echo $error;