playMaker

Author Topic: How can I add multi-string to a single global variable?  (Read 87 times)

Silicon Power

  • Playmaker Newbie
  • *
  • Posts: 27
    • View Profile
How can I add multi-string to a single global variable?
« on: November 12, 2017, 05:58:46 AM »
Hello guys, I need to design a simple register and login system for my game. for that I need to save usernames to a global variable and then I need to save all passwords to another global variables! is that possible with Play Maker?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2265
    • View Profile
    • jinxtergames
Re: How can I add multi-string to a single global variable?
« Reply #1 on: November 12, 2017, 06:10:51 AM »
Hi,
Do you mean that when you play the game after quitting the game (the next day or so)
that login/password is saved?

If so, you could use playerprefs actions to save/load the data, but i would recommend to use an asset (for example Easy Save)
playerprefs is good for saving preferences, but not for delicate things (like passwords) as it is very easy to hack.

Silicon Power

  • Playmaker Newbie
  • *
  • Posts: 27
    • View Profile
Re: How can I add multi-string to a single global variable?
« Reply #2 on: November 12, 2017, 06:30:18 AM »
Hi,
Do you mean that when you play the game after quitting the game (the next day or so)
that login/password is saved?

If so, you could use playerprefs actions to save/load the data, but i would recommend to use an asset (for example Easy Save)
playerprefs is good for saving preferences, but not for delicate things (like passwords) as it is very easy to hack.

Actually I'm going to create something like a simple website with Unity! I need a database to save usernames and passwords. Playerprefs can't help because as I know it's a temporary method works with windows registery key. anyway ... Can I create a database of string variables with Easy Save?
« Last Edit: November 12, 2017, 06:33:57 AM by Silicon Power »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2265
    • View Profile
    • jinxtergames
Re: How can I add multi-string to a single global variable?
« Reply #3 on: November 12, 2017, 07:43:30 AM »
Hi,
I do not think that Unity is the right tool for this.

But yes Easy Save supports MySql :
https://forum.unity.com/threads/easy-save-the-complete-save-load-asset-for-unity.91040/

There are better solutions, maybe this can help :
http://webdesignity.com/free-php-login-scripts/

Silicon Power

  • Playmaker Newbie
  • *
  • Posts: 27
    • View Profile
Re: How can I add multi-string to a single global variable?
« Reply #4 on: November 12, 2017, 10:13:31 AM »
Hi,
I do not think that Unity is the right tool for this.

But yes Easy Save supports MySql :
https://forum.unity.com/threads/easy-save-the-complete-save-load-asset-for-unity.91040/

There are better solutions, maybe this can help :
http://webdesignity.com/free-php-login-scripts/

Thanks for help. apart from what I'm going to do what is the best solution to create database for variables?