17.09.2013, 13:22
pawn Код:
strcat(query, "CREATE TABLE IF NOT EXISTS `playerdata` (`ID` INT(11) NOT NULL AUTO_INCREMENT, `Username` VARCHAR(24) NOT NULL, `Password` VARCHAR(40) NOT NULL, `Salt` VARCHAR(30) NOT NULL, `Gender` VARCHAR(24) NOT NULL, `Cash` INT(20) NOT NULL, `Bank` INT(20) NOT NULL, `BankReg` INT(10) NOT NULL,");
strcat(query, "`Level` INT(10) NOT NULL, `Skin` INT(10) NOT NULL, `Admin` INT(10) NOT NULL, `AdminDuty` INT(10) NOT NULL, `Owner` INT(10) NOT NULL, `Job` INT(10) NOT NULL, `Interior` INT(10) NOT NULL, `VirtualWorld` INT(10) NOT NULL, `NewbMute` INT(10) NOT NULL, `GetHouseID` INT(10) NOT NULL, `VehID` INT(10) NOT NULL,");
strcat(query, "`VehName` INT(10) NOT NULL, `VehX` float NOT NULL, `VehY` float NOT NULL, `VehZ` float NOT NULL, `VehA` float NOT NULL, `Veh2ID` INT(10) NOT NULL, `Veh2Name` INT(10) NOT NULL, `Veh2X` float NOT NULL, `Veh2Y` float NOT NULL, `Veh2Z` float NOT NULL, `Veh2A` float NOT NULL, `PosX` float NOT NULL,");
strcat(query, "`PosY` float NOT NULL, `PosZ` float NOT NULL, `PosA` float NOT NULL)");
mysql_function_query(dbHandle, query, false, "SendQuery", "");