#define MYSQL_HOST ("localhost")
#define MYSQL_USER ("root")
#define MYSQL_DATABASE ("samp")
#define MYSQL_PASS ("")
CREATE TABLE IF NOT EXISTS `repairpoints` ( `repairpointID` int(10) NOT NULL, `repairpointPosX` varchar(128) NOT NULL default '0.0', `repairpointPosY` varchar(128) NOT NULL default '0.0', `repairpointPosZ` varchar(128) NOT NULL default '0.0', `repairpointInterior` int(10) NOT NULL default '0', `repairpointVirtualWorld` int(10) NOT NULL default '0', `repairpointFee` int(10) NOT NULL default '5', PRIMARY KEY (`repairpointID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC; INSERT INTO `repairpoints` (`repairpointID`, `repairpointPosX`, `repairpointPosY`, `repairpointPosZ`, `repairpointInterior`, `repairpointVirtualWorld`, `repairpointFee`) VALUES (1, '0.0', '0.0', '0.0', 0, 0, 5), (2, '0.0', '0.0', '0.0', 0, 0, 5), (3, '0.0', '0.0', '0.0', 0, 0, 5), (4, '0.0', '0.0', '0.0', 0, 0, 5), (5, '0.0', '0.0', '0.0', 0, 0, 5), (6, '0.0', '0.0', '0.0', 0, 0, 5), (7, '0.0', '0.0', '0.0', 0, 0, 5), (8, '0.0', '0.0', '0.0', 0, 0, 5), (9, '0.0', '0.0', '0.0', 0, 0, 5), (10, '0.0', '0.0', '0.0', 0, 0, 5), (11, '0.0', '0.0', '0.0', 0, 0, 5), (12, '0.0', '0.0', '0.0', 0, 0, 5), (13, '0.0', '0.0', '0.0', 0, 0, 5), (14, '0.0', '0.0', '0.0', 0, 0, 5), (15, '0.0', '0.0', '0.0', 0, 0, 5), (16, '0.0', '0.0', '0.0', 0, 0, 5), (17, '0.0', '0.0', '0.0', 0, 0, 5), (18, '0.0', '0.0', '0.0', 0, 0, 5), (19, '0.0', '0.0', '0.0', 0, 0, 5), (20, '0.0', '0.0', '0.0', 0, 0, 5), (21, '0.0', '0.0', '0.0', 0, 0, 5), (22, '0.0', '0.0', '0.0', 0, 0, 5), (23, '0.0', '0.0', '0.0', 0, 0, 5), (24, '0.0', '0.0', '0.0', 0, 0, 5), (25, '0.0', '0.0', '0.0', 0, 0, 5);
Can you make it for money? Like when you use cmd to repair vehicle you should pay 300 dollars?
|
CREATE TABLE IF NOT EXISTS `repairpoints` ( `repairpointID` int(10) NOT NULL, `repairpointPosX` varchar(128) NOT NULL default '0.0', `repairpointPosY` varchar(128) NOT NULL default '0.0', `repairpointPosZ` varchar(128) NOT NULL default '0.0', `repairpointInterior` int(10) NOT NULL default '0', `repairpointVirtualWorld` int(10) NOT NULL default '0', `repairpointFee` int(10) NOT NULL default '5', PRIMARY KEY (`repairpointID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC; INSERT INTO `repairpoints` (`repairpointID`, `repairpointPosX`, `repairpointPosY`, `repairpointPosZ`, `repairpointInterior`, `repairpointVirtualWorld`, `repairpointFee`) VALUES (1, '0.0', '0.0', '0.0', 0, 0, 5), (2, '0.0', '0.0', '0.0', 0, 0, 5), (3, '0.0', '0.0', '0.0', 0, 0, 5), (4, '0.0', '0.0', '0.0', 0, 0, 5), (5, '0.0', '0.0', '0.0', 0, 0, 5), (6, '0.0', '0.0', '0.0', 0, 0, 5), (7, '0.0', '0.0', '0.0', 0, 0, 5), (8, '0.0', '0.0', '0.0', 0, 0, 5), (9, '0.0', '0.0', '0.0', 0, 0, 5), (10, '0.0', '0.0', '0.0', 0, 0, 5), (11, '0.0', '0.0', '0.0', 0, 0, 5), (12, '0.0', '0.0', '0.0', 0, 0, 5), (13, '0.0', '0.0', '0.0', 0, 0, 5), (14, '0.0', '0.0', '0.0', 0, 0, 5), (15, '0.0', '0.0', '0.0', 0, 0, 5), (16, '0.0', '0.0', '0.0', 0, 0, 5), (17, '0.0', '0.0', '0.0', 0, 0, 5), (18, '0.0', '0.0', '0.0', 0, 0, 5), (19, '0.0', '0.0', '0.0', 0, 0, 5), (20, '0.0', '0.0', '0.0', 0, 0, 5), (21, '0.0', '0.0', '0.0', 0, 0, 5), (22, '0.0', '0.0', '0.0', 0, 0, 5), (23, '0.0', '0.0', '0.0', 0, 0, 5), (24, '0.0', '0.0', '0.0', 0, 0, 5), (25, '0.0', '0.0', '0.0', 0, 0, 5);
This dont work it comes up as a error on it can you fix it??
Код:
CREATE TABLE IF NOT EXISTS `repairpoints` ( `repairpointID` int(10) NOT NULL, `repairpointPosX` varchar(128) NOT NULL default '0.0', `repairpointPosY` varchar(128) NOT NULL default '0.0', `repairpointPosZ` varchar(128) NOT NULL default '0.0', `repairpointInterior` int(10) NOT NULL default '0', `repairpointVirtualWorld` int(10) NOT NULL default '0', `repairpointFee` int(10) NOT NULL default '5', PRIMARY KEY (`repairpointID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC; INSERT INTO `repairpoints` (`repairpointID`, `repairpointPosX`, `repairpointPosY`, `repairpointPosZ`, `repairpointInterior`, `repairpointVirtualWorld`, `repairpointFee`) VALUES (1, '0.0', '0.0', '0.0', 0, 0, 5), (2, '0.0', '0.0', '0.0', 0, 0, 5), (3, '0.0', '0.0', '0.0', 0, 0, 5), (4, '0.0', '0.0', '0.0', 0, 0, 5), (5, '0.0', '0.0', '0.0', 0, 0, 5), (6, '0.0', '0.0', '0.0', 0, 0, 5), (7, '0.0', '0.0', '0.0', 0, 0, 5), (8, '0.0', '0.0', '0.0', 0, 0, 5), (9, '0.0', '0.0', '0.0', 0, 0, 5), (10, '0.0', '0.0', '0.0', 0, 0, 5), (11, '0.0', '0.0', '0.0', 0, 0, 5), (12, '0.0', '0.0', '0.0', 0, 0, 5), (13, '0.0', '0.0', '0.0', 0, 0, 5), (14, '0.0', '0.0', '0.0', 0, 0, 5), (15, '0.0', '0.0', '0.0', 0, 0, 5), (16, '0.0', '0.0', '0.0', 0, 0, 5), (17, '0.0', '0.0', '0.0', 0, 0, 5), (18, '0.0', '0.0', '0.0', 0, 0, 5), (19, '0.0', '0.0', '0.0', 0, 0, 5), (20, '0.0', '0.0', '0.0', 0, 0, 5), (21, '0.0', '0.0', '0.0', 0, 0, 5), (22, '0.0', '0.0', '0.0', 0, 0, 5), (23, '0.0', '0.0', '0.0', 0, 0, 5), (24, '0.0', '0.0', '0.0', 0, 0, 5), (25, '0.0', '0.0', '0.0', 0, 0, 5); |
Error SQL query: CREATE TABLE IF NOT EXISTS `repairpoints` ( `repairpointID` INT( 10 ) NOT NULL , `repairpointPosX` VARCHAR( 128 ) NOT NULL DEFAULT '0.0', `repairpointPosY` VARCHAR( 128 ) NOT NULL DEFAULT '0.0', `repairpointPosZ` VARCHAR( 128 ) NOT NULL DEFAULT '0.0', `repairpointInterior` INT( 10 ) NOT NULL DEFAULT '0', `repairpointVirtualWorld` INT( 10 ) NOT NULL DEFAULT '0', `repairpointFee` INT( 10 ) NOT NULL DEFAULT '5', PRIMARY KEY ( `repairpointID` ) ) ENGINE = MYISAM DEFAULT CHARSET = latin1 ROW_FORMAT = DYNAMIC ; MySQL said: #1046 - No database selected