function __construct($id = null) {
global $db;
/*users*/
$db->query('SELECT userid, name, pass, level, experance, jail, hospital, gender, race, FROM players WHERE userid = ?');
$db->execute([$id]);
$row = $db->fetch_row(true);
$this->id = isset($row['userid']);
$this->name = isset($row['name']);
$this->pas = isset($row['pass']);
$this->level = isset($row['level']);
$this->exp = isset($row['experance']);
$this->jail = isset($row['jail']);
$this->hospital = isset($row['hospital']);
$this->gender = $row['gender'];
$this->race = $row['race'];
$players = players::getInstance();