liga und wanted gingen dann doch noch nicht

main
hecht 10 years ago
parent cf39e6dd34
commit e510b1a541

@ -9,6 +9,7 @@
include('db.php');
include('path.inc.php');
include_once(ROOT_PATH.'/include/char.inc.php');
include_once(ROOT_PATH.'/include/sqlwrapper.inc.php');
set_time_limit(0);
function rand_array($array)
@ -36,13 +37,14 @@ foreach($races as $race) {
$exclude_race_ids[] = '\''.$race['id'].'\'';
}
$max_charakter = mysql_num_rows(mysql_query('SELECT id FROM chars WHERE rasse NOT IN ('.implode(',', $exclude_race_ids).') LIMIT 250'));
$max_charakter = mysql_num_rows(db_query('SELECT id FROM chars WHERE rasse NOT IN ('.implode(',', $exclude_race_ids).') LIMIT 250'));
if($max_charakter<250) {
echo "Not enough chars ($max_charakter)";
exit;
}
$charakter = mysql_query('SELECT name, id FROM chars WHERE rasse NOT IN '.implode(',', $exclude_race_ids).' ORDER BY level DESC LIMIT '.$max_charakter);
$charakter = db_query('SELECT name, id FROM chars WHERE rasse NOT IN('.implode(',', $exclude_race_ids).') ORDER BY level DESC LIMIT '.$max_charakter);

@ -43,7 +43,7 @@ if($max_charakter<500) {
exit;
}
$charakter = mysql_query('SELECT name, id FROM chars WHERE rasse NOT IN '.implode(',', $exclude_race_ids).' ORDER BY level DESC LIMIT '.$max_charakter);
$charakter = mysql_query('SELECT name, id FROM chars WHERE rasse NOT IN ('.implode(',', $exclude_race_ids).') ORDER BY level DESC LIMIT '.$max_charakter);

Loading…
Cancel
Save