mysql_query (" ALTER TABLE `users` ADD ( `gorod_life` smallint(6) NOT NULL, `gorod_eda_time` bigint(20) NOT NULL, `gorod_money` bigint(20) NOT NULL, `gorod_ohota_time` bigint(20) NOT NULL, `gorod_brak` varchar(32) NOT NULL, `gorod_tamag` varchar(32) NOT NULL, `gorod_tamag_life` smallint(6) NOT NULL, `gorod_tamag_time` bigint(20) NOT NULL, `gorod_voodoo` int(11) NOT NULL, `gorod_voodoo_name` varchar(32) NOT NULL, `gorod_kopi` bigint(20) NOT NULL, `gorod_kriminal` int(11) NOT NULL, `gorod_kriminal_time` bigint(20) NOT NULL, `gorod_security` varchar(32) NOT NULL, `gorod_security_uron` int(11) NOT NULL, `gorod_para` varchar(50) NOT NULL, `gorod_tur` varchar(50) NOT NULL, `gorod_firm` varchar(50) NOT NULL, `gorod_band` varchar(50) NOT NULL, `gorod_band_time` bigint(20) NOT NULL ) ; "); mysql_query (" CREATE TABLE IF NOT EXISTS `gorod_avto` ( `id` int(11) NOT NULL auto_increment, `name` varchar(50) NOT NULL, `path` varchar(15) NOT NULL, `price` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=3 ;"); mysql_query ("CREATE TABLE IF NOT EXISTS `gorod_band` ( `id` int(11) NOT NULL auto_increment, `name` varchar(50) NOT NULL, `glava` varchar(32) NOT NULL, `zarplata` int(11) NOT NULL, `bal` int(11) NOT NULL, `kill` int(11) NOT NULL, `balans` int(11) NOT NULL, `opis` varchar(250) NOT NULL, `open` varchar(3) NOT NULL, `needbal` int(11) NOT NULL, `krishaopen` varchar(3) NOT NULL, `price` int(11) NOT NULL, `krishaprice` int(11) NOT NULL, `strana` varchar(5) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=588 ;"); mysql_query ("CREATE TABLE IF NOT EXISTS `gorod_bar` ( `id` int(11) NOT NULL auto_increment, `name` varchar(50) NOT NULL, `price` int(11) NOT NULL, `life` smallint(6) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=8 ;"); mysql_query ("CREATE TABLE IF NOT EXISTS `gorod_bazar` ( `id` int(11) NOT NULL auto_increment, `name` varchar(150) NOT NULL, `price` int(11) NOT NULL, `life` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=2 ;"); mysql_query ("CREATE TABLE IF NOT EXISTS `gorod_conf` ( `open` varchar(2) NOT NULL, `kopi` int(11) NOT NULL, `kopi_v` varchar(32) NOT NULL, `kopi_k` varchar(32) NOT NULL, `kopi_time` int(11) NOT NULL, `luna` int(11) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8;"); mysql_query ("INSERT INTO `gorod_conf` (`open`, `kopi`, `kopi_v`, `kopi_k`, `kopi_time`, `luna`) VALUES ('0', 0, '0', '0', 36000, 0);"); mysql_query ("CREATE TABLE IF NOT EXISTS `gorod_dom` ( `id` int(11) NOT NULL auto_increment, `name` varchar(50) NOT NULL, `path` varchar(15) NOT NULL, `price` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;"); mysql_query ("CREATE TABLE IF NOT EXISTS `gorod_firm` ( `id` int(11) NOT NULL auto_increment, `name` varchar(50) NOT NULL, `opis` varchar(250) NOT NULL, `lasttake` bigint(20) NOT NULL, `dohod` int(11) NOT NULL, `balans` int(11) NOT NULL, `user` varchar(32) NOT NULL, `date` bigint(20) NOT NULL, `update` bigint(20) NOT NULL, `pritok` int(11) NOT NULL, `birga` varchar(3) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=160 ;"); mysql_query ("CREATE TABLE IF NOT EXISTS `gorod_invent` ( `id` int(11) NOT NULL auto_increment, `uid` int(11) NOT NULL, `name` varchar(150) NOT NULL, `life` smallint(6) NOT NULL, `type` varchar(50) NOT NULL, `price` bigint(20) NOT NULL, `uron` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;"); mysql_query ("CREATE TABLE IF NOT EXISTS `gorod_mobi` ( `id` int(11) NOT NULL auto_increment, `name` varchar(50) NOT NULL, `path` varchar(15) NOT NULL, `price` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=16 ;"); mysql_query ("CREATE TABLE IF NOT EXISTS `gorod_para` ( `id` int(11) NOT NULL auto_increment, `name` varchar(50) NOT NULL, `price` int(11) NOT NULL, `path` varchar(15) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=20 ;"); mysql_query ("CREATE TABLE IF NOT EXISTS `gorod_security` ( `id` int(11) NOT NULL auto_increment, `name` varchar(50) NOT NULL, `price` int(11) NOT NULL, `uron` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=15 ;"); mysql_query ("CREATE TABLE IF NOT EXISTS `gorod_tbega` ( `id` int(11) NOT NULL auto_increment, `name` varchar(32) NOT NULL, `bet` smallint(6) NOT NULL, `last` varchar(32) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=308 ;"); mysql_query ("CREATE TABLE IF NOT EXISTS `gorod_tur` ( `id` int(11) NOT NULL auto_increment, `name` varchar(50) NOT NULL, `opis` varchar(250) NOT NULL, `price` int(11) NOT NULL, `path` varchar(15) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=2 ;"); mysql_query ("CREATE TABLE IF NOT EXISTS `gorod_weapon` ( `id` int(11) NOT NULL auto_increment, `name` varchar(50) NOT NULL, `dameg` int(11) NOT NULL, `price` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;"); mysql_query ("CREATE TABLE IF NOT EXISTS `gorod_zaks` ( `id` int(11) NOT NULL auto_increment, `date` bigint(20) NOT NULL, `on` varchar(32) NOT NULL, `ona` varchar(32) NOT NULL, `onyes` varchar(3) NOT NULL, `onayes` varchar(3) NOT NULL, `avtor` varchar(32) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;"); mysql_query ("CREATE TABLE IF NOT EXISTS `gorod_zoo` ( `id` int(11) NOT NULL auto_increment, `user` varchar(32) NOT NULL, `path` varchar(15) NOT NULL, `name` varchar(32) NOT NULL, `where` varchar(32) NOT NULL, `opis` varchar(150) NOT NULL, `fam` varchar(50) NOT NULL, `poroda` varchar(50) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ; ");