Deleted sex from users table.
This commit is contained in:
+2
-2
@@ -339,7 +339,7 @@ if($_GET['start']){
|
||||
$level = 0;
|
||||
while($nana = mysql_fetch_array($zax)) {
|
||||
$n_login = $nana['login'];
|
||||
$rty = mysql_query("SELECT `id`, `level`, `login`, `sex`, `shadow`, `money`, `hp` FROM `users` WHERE `login` = '$n_login' LIMIT 1");
|
||||
$rty = mysql_query("SELECT `id`, `level`, `login`, `shadow`, `money`, `hp` FROM `users` WHERE `login` = '$n_login' LIMIT 1");
|
||||
$esth = mysql_fetch_array($rty);
|
||||
if($esth['hp'] <= 0) { $esth['hp'] = 1; mysql_query('UPDATE `users` SET `hp` = "'.$esth['hp'].'" WHERE `id` = "'.$esth['id'].'" LIMIT 1'); }
|
||||
if($nana['fee']) {
|
||||
@@ -366,7 +366,7 @@ if($_GET['start']){
|
||||
$vrem = 30*60+time();
|
||||
|
||||
include_once("cavedata.php");
|
||||
mysql_query("INSERT INTO `caveparties` SET `user` = '$esth[id]', `leader` = '$user[id]', `login` = '$esth[login]', `shadow` = '$esth[sex]/0.png', `x` = '".$cavedata[$user['room']+1]['x1']."', `y` = '".$cavedata[$user['room']+1]['y1']."', `dir` = '".$cavedata[$user['room']+1]['dir1']."', `floor` = 1");
|
||||
mysql_query("INSERT INTO `caveparties` SET `user` = '$esth[id]', `leader` = '$user[id]', `login` = '$esth[login]', `shadow` = '0.png', `x` = '".$cavedata[$user['room']+1]['x1']."', `y` = '".$cavedata[$user['room']+1]['y1']."', `dir` = '".$cavedata[$user['room']+1]['dir1']."', `floor` = 1");
|
||||
|
||||
mysql_query("UPDATE `users`, `online` SET ".($nc?"`users`.`caveleader` = '$user[id]', ":"")." `users`.`room` = '".($user['room']+1)."', `online`.`room` = '".($user['room']+1)."' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '".$esth['id']."'");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user