silentdarkin
New Member
- Joined
- Dec 1, 2008
- Messages
- 3
- Reaction score
- 0
Where i Download this ot!!??
CREATE TABLE `tiles`
(
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`x` INT(5) UNSIGNED NOT NULL,
`y` INT(5) UNSIGNED NOT NULL,
`z` TINYINT(2) UNSIGNED NOT NULL,
PRIMARY KEY (`id`)
KEY (`x`, `y`, `z`)
) ENGINE = InnoDB;
PRIMARY KEY (`id`)
PRIMARY KEY (`id`),
Query:
CREATE TABLE `tiles`
(
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`x` INT(5) UNSIGNED NOT NULL,
`y` INT(5) UNSIGNED NOT NULL,
`z` TINYINT(2) UNSIGNED NOT NULL,
PRIMARY KEY (`id`)
KEY (`x`, `y`, `z`)
) ENGINE = InnoDB
Error occured at:2008-11-30 23:33:28
Line no.:327
Error Code: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'KEY (`x`, `y`, `z`)
) ENGINE = InnoDB' at line 8
Query:
CREATE TABLE `tile_items`
(
`tile_id` INT NOT NULL,
`sid` INT NOT NULL,
`pid` INT NOT NULL DEFAULT 0,
`itemtype` INT NOT NULL,
`count` INT NOT NULL DEFAULT 0,
`attributes` BLOB NOT NULL,
KEY (`sid`),
FOREIGN KEY (`tile_id`) REFERENCES `tiles`(`id`) ON DELETE CASCADE
) ENGINE = InnoDB
Error occured at:2008-11-30 23:39:56
Line no.:339
Error Code: 1005 - Can't create table
'.\theforgottenserver\tile_items.frm' (errno: 150)
`tile_id` INT NOT NULL,
`tile_id` INT UNSIGNED NOT NULL,
In the tile_items table, in the schema file, I changed
toCode:`tile_id` INT NOT NULL,
and it works, would that have been the problem since id in the tiles table is unsigned?Code:`tile_id` INT UNSIGNED NOT NULL,
Jo3
#1005 - Can't create table '.\lwot\tile_items.frm' (errno: 150)
i'm Getting it after put the ',' at the end of PRIMARY KEY (`id`)
What the webserver are u using?
i'm using xampp 1.6.8 !
btw does /addskill ~,magic or m work? (i get all the skills working but magic not)
try magiclevel/magiclvl.
else if(skill[0] == 'm')
target->addManaSpent(player->getVocation()->getReqMana(target->getMagicLevel() + 1) - target->getSpentMana());
So..
I Think i need some help
I have a Tfs 0.3.0 alpha3 , and i love him.
But, i wanna merge it on this version
How i can merge old version in new version?