- Joined
- May 28, 2007
- Messages
- 3,633
- Reaction score
- 19
Yoho all since i had the same problem i decided to make a tutorial to help all of you!
Before we start do this! Save your accounts and put them into a safe place in your computer because you'll need to reinstall TFS on your database!
Lets start ;D
Step 1
download the latest phpmyadmin at phpMyAdmin - Download.
Step 2
After you've downloaded it replace it with the current one you've got. NOTICE! THE FILE NAME MUST BE PHPMYADMIN
Step 3
Now enter your localhost phpMyAdmin 2.9.1.1-Debian-8 , login and reinstall TFS. after the installation press on the SQL button in the north-western menu and write this then press GO!
--
Now it shall work! Please post here if you don't understand i will put pictures later!
Credit to Talaturen!
Rep++ if it helped you!
Before we start do this! Save your accounts and put them into a safe place in your computer because you'll need to reinstall TFS on your database!
Lets start ;D
Step 1
download the latest phpmyadmin at phpMyAdmin - Download.
Step 2
After you've downloaded it replace it with the current one you've got. NOTICE! THE FILE NAME MUST BE PHPMYADMIN
Step 3
Now enter your localhost phpMyAdmin 2.9.1.1-Debian-8 , login and reinstall TFS. after the installation press on the SQL button in the north-western menu and write this then press GO!
PHP:
DELIMITER |
CREATE TRIGGER `oncreate_players`
AFTER INSERT
ON `players`
FOR EACH ROW
BEGIN
INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 0, 10);
INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 1, 10);
INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 2, 10);
INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 3, 10);
INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 4, 10);
INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 5, 10);
INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 6, 10);
END|
DELIMITER ;
Now it shall work! Please post here if you don't understand i will put pictures later!
Credit to Talaturen!
Rep++ if it helped you!
Last edited: