Usei o topico
http://www.xtibia.co...os/page__st__20
Deu td certo mais na hora de add no phpmyadmin
ALTER TABLE `guild_wars`
ADD CONSTRAINT `guild_wars_ibfk_1` FOREIGN KEY (`guild_id`) REFERENCES `guilds` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `guild_wars_ibfk_2` FOREIGN KEY (`enemy_id`) REFERENCES `guilds` (`id`) ON DELETE CASCADE;
Aparece o seguinte erro:
#1005 - Can't create table 'otserv.#sql-7c4_e9' (errno: 150) (Detalhes...)
datalhes: Supports transactions, row-level locking, and foreign keys
Ajudaa ai please, REP++