problem with my game

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

ahmedaz3ar
Posts: 1
Joined: 13 Jun 2016, 13:15

problem with my game

Postby ahmedaz3ar » 13 Jun 2016, 13:43

Hello , I have a problem with my game working on your server ( smart fox ) because its online, But I do not know how to make it work on the server .
The game is about 300 files .
the problem is when I register an account in the game and login to the game with my account , the account is not recognized ! although I registered this account befor in the game and I 'm sure that because I found the acount in the game's database .
so what shall I do ? should I connect database whit smartfoxserver to recognizes the account ? and how can I do that ? or is there anything else ?

thank you .
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: problem with my game

Postby Lapo » 13 Jun 2016, 14:02

should I connect database whit smartfoxserver to recognizes the account ? and how can I do that ? or is there anything else ?

Yes. You need to write an Extension (server side code) that verifies the credentials of users against the database.

To do this you need:
1- Setup the database connection from the SmartFox side
2- Write the custom server side code to validate the user's credentials.

If you're using SFS PRO (as it appears) you can check the doc examples here:
http://smartfoxserver.com/docs/1x/docPa ... /index.htm
http://smartfoxserver.com/docs/1x/docPa ... /index.htm
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 50 guests