• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Database problem :S

bolero

MikeHere
Joined
Apr 13, 2009
Messages
1,146
Reaction score
12
Location
Venezuela
Code:
[16:46:00.743] mysql_real_query(): INSERT INTO `killers` (`death_id`, `final_hit`, `unjustified`, `war`) VALUES (1, 1, 0, 0) - MYSQL ERROR: Cannot add or update a child row: a foreign key constraint fails (`mistic`.`killers`, CONSTRAINT `killers_ibfk_1` FOREIGN KEY (`death_id`) REFERENCES `players_killers` (`id`) ON DELETE CASCADE) (1452)

How I can repair this? T.T HELPPPPPPPPPPPP PLEASEEE
 
Well you problem is that the killers table is "connected" to `players_killers` table. If you want to add something in killers table there MUST be an entry in players_killers WHERE id is the same as the death_id you want to add in killers table.
 
Back
Top