16.09.2011, 15:10
Looks alright.
My suggestion:
The plugin will be almost plug & play.
Not sure if you won't need to join strings.
I think it's the best(coded, not featured) released entrance system.
+ You should add a command /createinterior (which automaticly saves it into mysql). That way people could add different places dynamically.
My suggestion:
pawn Код:
function CreateMySQLConnection(host[], user[], db[], pass[])
{
mysql_connect(host, user, db, pass);
if (mysql_ping() >= 1)
{
print("INFO: Connected To MySQL!");
}
else
{
print("INFO: Can't Connect To MySQL!");
}
mysql_query("CREATE TABLE IF NOT EXISTS `entrances` ( \
`ID` int(3) NOT NULL, \
`Name` varchar(25) NOT NULL, \
`X` float NOT NULL, \
`Y` float NOT NULL, \
`Z` float NOT NULL, \
`exitX` float NOT NULL, \
`exitY` float NOT NULL, \
`exitZ` float NOT NULL, \
`Interior` int(5) NOT NULL, \
`VirtualW` int(3) NOT NULL \
) ENGINE=InnoDB DEFAULT CHARSET=latin1;");
}
Not sure if you won't need to join strings.
I think it's the best(coded, not featured) released entrance system.
+ You should add a command /createinterior (which automaticly saves it into mysql). That way people could add different places dynamically.