11.01.2013, 10:38
make a table in database like
and after make a public which on gm on load them, and on gm off save it into mysql, also make a function like to save id of gangzone like SaveGangZone(id), rest go on
PHP код:
DROP TABLE IF EXISTS `gangzones`;
CREATE TABLE IF NOT EXISTS `gangzones` (
`ID` int(11) NOT NULL,
`Description` varchar(20) COLLATE utf8_bin NOT NULL DEFAULT '',
`X` varchar(20) NOT NULL DEFAULT '0.0000',//its on string, its better to work in string than float, some issues happening when use float in mysql
`Y` varchar(20) NOT NULL DEFAULT '0.0000',
`cX` varchar(20) NOT NULL DEFAULT '0.0000',
`cY` varchar(20) NOT NULL DEFAULT '0.0000',
`Owned` varchar(20) NOT NULL DEFAULT '0',
UNIQUE KEY `ID` (`ID`)
);

