Does anyone know how to add ladders to a server
CREATE TABLE `ladder3` (
`player0` varchar(255) NOT NULL,
`player1` varchar(255) NOT NULL,
`victor` int(10) unsigned default NULL,
KEY `player0` (`player0`),
KEY `player1` (`player1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
ALTER TABLE users ADD rating3 DOUBLE; ALTER TABLE users ADD deviation3 DOUBLE; ALTER TABLE users ADD volatility3 DOUBLE; ALTER TABLE users ADD estimate3 DOUBLE; ALTER TABLE users ADD updated_rating3 DOUBLE; ALTER TABLE users ADD updated_deviation3 DOUBLE; ALTER TABLE users ADD updated_volatility3 DOUBLE;
Sorry about the second post. I got fed up with windows 7, and switched over to Linux (again). I have to code.
Just drop into MySQL.Code:CREATE TABLE `ladder3` ( `player0` varchar(255) NOT NULL, `player1` varchar(255) NOT NULL, `victor` int(10) unsigned default NULL, KEY `player0` (`player0`), KEY `player1` (`player1`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; ALTER TABLE users ADD rating3 DOUBLE; ALTER TABLE users ADD deviation3 DOUBLE; ALTER TABLE users ADD volatility3 DOUBLE; ALTER TABLE users ADD estimate3 DOUBLE; ALTER TABLE users ADD updated_rating3 DOUBLE; ALTER TABLE users ADD updated_deviation3 DOUBLE; ALTER TABLE users ADD updated_volatility3 DOUBLE;
Note: From when I've used that, all users created before using that will be non-effected. They will have the ladder on their record, the rating remains 0, and cannot change. I do not know the solution to this, though.