02.07.2016, 16:45
This error is given when trying to insert or update a row in the child table but there is no such value (for ID in your case) in the parent table. I also noticed that it says "references `weapondata` (`ID`)", it should have been the parent table instead. Post some screenshots from the table's structure -> Relation view