playMaker

Author Topic: Save score help  (Read 1409 times)

nabilfx

  • Full Member
  • ***
  • Posts: 186
Save score help
« on: May 15, 2015, 06:34:19 PM »
I have Easy Save 2, ive download Save and Load a bool with Playmaker, How i save the score variable float, into a PHP on a press buttom?

And how to load into the game back?

nabilfx

  • Full Member
  • ***
  • Posts: 186
Re: Save score help
« Reply #1 on: May 15, 2015, 06:50:01 PM »
I dont now how to fill this

$db_host       =    "localhost";    // MySQL Host Name.
$db_user       =    "root";       // MySQL User Name.
$db_password    =    "myDatabasePassword";    // MySQL Password.
$db_name       =    "es2";          // MySQL Database Name.

and the ES2SQL.sql


--
-- Table structure for table `es2data`
--
SET foreign_key_checks = 0;
CREATE TABLE IF NOT EXISTS `es2data` (
  `tag` varchar(100) NOT NULL DEFAULT '',
  `data` mediumblob NOT NULL,
  `fileId` int(11) NOT NULL,
  PRIMARY KEY (`tag`,`fileId`),
  KEY `fileId` (`fileId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `es2files`
--

CREATE TABLE IF NOT EXISTS `es2files` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `filename` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `filename` (`filename`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `es2data`
--
ALTER TABLE `es2data`
  ADD CONSTRAINT `es2data_ibfk_1` FOREIGN KEY (`fileId`) REFERENCES `es2files` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

SET foreign_key_checks = 1;