24.07.2010, 21:33
Hello everyone,
I have a problem, and I am getting pretty sick of it.
The problem:
I have a gamemode, which connects to a mysql database. When a player logs in, the gamemode imports the x, y, and z coordinates from the database. (also a few other's, but they work fine).
So, when I start the server, and I login, everything works. I can login fine, and I spawn at the position defined in the database. But, however, when I restart the client without restarting the server, I can login, but I don't spawn anymore!
But when I make a clientmessage when I login, the line shows me the coordinates from the database. So the importing works fine. But, for some weird reason I don't spawn. I'm getting sick of it.
I would really appreciate it when someone can help me.
Here is the gamemode: http://pastebin.com/xHRWi9TH
Thanks so far
Bas
I have a problem, and I am getting pretty sick of it.
The problem:
I have a gamemode, which connects to a mysql database. When a player logs in, the gamemode imports the x, y, and z coordinates from the database. (also a few other's, but they work fine).
So, when I start the server, and I login, everything works. I can login fine, and I spawn at the position defined in the database. But, however, when I restart the client without restarting the server, I can login, but I don't spawn anymore!
But when I make a clientmessage when I login, the line shows me the coordinates from the database. So the importing works fine. But, for some weird reason I don't spawn. I'm getting sick of it.
I would really appreciate it when someone can help me.
Here is the gamemode: http://pastebin.com/xHRWi9TH
Thanks so far
Bas