[MySQL] Check Account not quite working
#2

I'm assuming each and every player that registers an account on your server is saved in SQL. Why don't you pull the SQL ID instead?

On my server when a player connects OnPlayerConnect runs the query that pulls up basic player account information such as the SQLid, name and password and loads it into the PlayerInfo enum I have setup.

So then when it hits OnPlayerRequestClass it checks to see if PlayerInfo[playerid][pSQLId] exists, if it does it loads the regular username/password dialog. If it doesn't then it runs through the player registration system.
Reply


Messages In This Thread
[MySQL] Check Account not quite working - by Kontrol - 16.01.2013, 03:00
Re: [MySQL] Check Account not quite working - by Treyvan - 16.01.2013, 03:07
Re: [MySQL] Check Account not quite working - by coakiddo - 16.01.2013, 06:54
Re: [MySQL] Check Account not quite working - by Kontrol - 16.01.2013, 12:33
Re: [MySQL] Check Account not quite working - by coakiddo - 16.01.2013, 14:10
Re: [MySQL] Check Account not quite working - by Kontrol - 16.01.2013, 14:24
Re: [MySQL] Check Account not quite working - by Kontrol - 17.01.2013, 02:04
Re: [MySQL] Check Account not quite working - by Kontrol - 17.01.2013, 18:49

Forum Jump:


Users browsing this thread: 2 Guest(s)