MySQl tables are not created
#1

I was following one MySQL script by Konstantinos. I am begginer in MySQL xD so..
There is SetupPlayerTable()
PHP код:
SetupPlayerTable()
{
    
mysql_tquery(g_SQL"CREATE TABLE IF NOT EXISTS `players` (`id` int(11) NOT NULL AUTO_INCREMENT,`username` varchar(24) NOT NULL,`password` char(64) NOT NULL,`salt` char(16) NOT NULL,`kills` mediumint(8) NOT NULL DEFAULT '0',`deaths` mediumint(8) NOT NULL DEFAULT '0',`x` float NOT NULL DEFAULT '0',`y` float NOT NULL DEFAULT '0',`z` float NOT NULL DEFAULT '0',`angle` float NOT NULL DEFAULT '0',`interior` tinyint(3) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `username` (`username`))");
    return 
1;

Problem is that it only creates 1 table named Players.. Any ideas?
Reply


Messages In This Thread
MySQl tables are not created - by Micko123 - 26.10.2016, 19:50
Re: MySQl tables are not created - by Vince - 26.10.2016, 20:07
Re: MySQl tables are not created - by Micko123 - 26.10.2016, 20:09
Re: MySQl tables are not created - by Micko123 - 26.10.2016, 20:18
Re: MySQl tables are not created - by Konstantinos - 27.10.2016, 09:47
Re: MySQl tables are not created - by Micko123 - 27.10.2016, 19:14
Re: MySQl tables are not created - by Konstantinos - 27.10.2016, 20:04
Re: MySQl tables are not created - by Micko123 - 27.10.2016, 20:06

Forum Jump:


Users browsing this thread: 2 Guest(s)