Pro Login Example with MySQL

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

Moderators: Lapo, Bax

Post Reply
Geek
Posts: 12
Joined: 25 Oct 2010, 19:28
Location: United States

Pro Login Example with MySQL

Post by Geek »

Hey all,

I am trying to get my server-sided login to work, which it does, except I need to get it to work with a mysql database.

I have read multiple tutorials on how to get databases to work with SFS, but I just can't seem to get it to work with the Pro Login example, which is what I need.

If there are any examples or tutorials on how to get the Pro Login to work with mysql, that would be great.

Thanks.
Hey, I'm Geek. Programmer.
Aiidenb
Posts: 263
Joined: 16 Aug 2010, 22:08
Location: England
Contact:

Re: Pro Login Example with MySQL

Post by Aiidenb »

Geek wrote:Hey all,

I am trying to get my server-sided login to work, which it does, except I need to get it to work with a mysql database.

I have read multiple tutorials on how to get databases to work with SFS, but I just can't seem to get it to work with the Pro Login example, which is what I need.

If there are any examples or tutorials on how to get the Pro Login to work with mysql, that would be great.

Thanks.
I also nee dhelp with this.. Please help! :)
Geek
Posts: 12
Joined: 25 Oct 2010, 19:28
Location: United States

Post by Geek »

Hey,

I have mostly gotten this to work. It was just a matter of rereading the tutorial and making the extension check the database.

But I have one problem.

I have this all added to my game, but if you try to login as someone banned no message pops up. (The one that usually says "You have been banned").
Hey, I'm Geek. Programmer.
Flappi282
Posts: 158
Joined: 20 May 2009, 17:51
Contact:

Post by Flappi282 »

If the user is banned, you can send an extension response saying You Are Banned, if the login fails.

That would work.
--
Flappi282
Post Reply