12.01.2014, 13:40
PHP Code:
mysql_tquery(mysql, "CREATE TABLE IF NOT EXISTS `joueurs`(\
`ID` int(10) NOT NULL AUTO_INCREMENT, \
`Username` varchar(24) NOT NULL, \
`Password` varchar(129) NOT NULL, \
`IP` varchar(16) NOT NULL, \
`Admin` int(10) NOT NULL, \
`VIP` int(10) NOT NULL, \
`Argent` int(10) NOT NULL, \
`posX` float NOT NULL, \
`posY` float NOT NULL, \
`posZ` float NOT NULL, \
`Interieur` int(11) NOT NULL, \
`World` int(11) NOT NULL, \
`Skin` int(10) NOT NULL, \
`Niveau` int(10) NOT NULL, \
PRIMARY KEY (`ID`))", "", "");
PHP Code:
mysql_tquery(mysql, "CREATE TABLE IF NOT EXISTS `joueurs`(\
`ID` int(10) NOT NULL AUTO_INCREMENT, \
`Username` varchar(24) NOT NULL, \
`Password` varchar(129) NOT NULL, \
`IP` varchar(16) NOT NULL, \
`Admin` int(10) NOT NULL, \
`VIP` int(10) NOT NULL, \
`Argent` int(10) NOT NULL, \
`posX` float NOT NULL, \
PRIMARY KEY (`ID`))", "", "");
PHP Code:
mysql_tquery(mysql, "CREATE TABLE IF NOT EXISTS `joueurs`(\
`posY` float NOT NULL, \
`posZ` float NOT NULL, \
`Interieur` int(11) NOT NULL, \
`World` int(11) NOT NULL, \
`Skin` int(10) NOT NULL, \
`Niveau` int(10) NOT NULL, \
PRIMARY KEY (`ID`))", "", "");
Edit: Si tu remplace OnAccountLoad par OnPlayerSpawn sa ne fait rien?