Posts: 2,896
Threads: 11
Joined: Sep 2008
Reputation:
0
It's not good to post code from other scripts.
But have you created the database needed? Have you connected to the database in OnGameModeInit?
Posts: 7
Threads: 1
Joined: Jul 2010
Reputation:
0
Problem is in OnPlayerLogin, OnPlayerRegister inserts user to database.
Posts: 2,896
Threads: 11
Joined: Sep 2008
Reputation:
0
Well does it send you any messages? Does your server crash after logging in?
Posts: 7
Threads: 1
Joined: Jul 2010
Reputation:
0
It doesn't send anything.. If I press Spawn it says: "You need to log in before spawn" and so on..
Posts: 2,896
Threads: 11
Joined: Sep 2008
Reputation:
0
And when you do login (with /login or whatever it is) it just doesn't do anything?
Can I see the /login code?
Posts: 2,896
Threads: 11
Joined: Sep 2008
Reputation:
0
Well I dont' see 'PlayerInfo[playerid][pKey]' being set anywhere, is it auto-set when they enter the server or what?
If that's not the problem, I'm not sure. Try debugging each line of code, and see where it stops.
Posts: 7
Threads: 1
Joined: Jul 2010
Reputation:
0
MySQLFetchAcctSingle does it( MySQLFetchAcctSingle(PlayerInfo[playerid][pSQLID], "Password", PlayerInfo[playerid][pKey]); )
Posts: 2,896
Threads: 11
Joined: Sep 2008
Reputation:
0
Yeah, I've never heard of that function. Let me see it please.