Wtf, why isn't my player spawning? -
baske007 - 24.07.2010
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
Re: Wtf, why isn't my player spawning? -
baske007 - 24.07.2010
-- bump--
i'm now going to sleep, so I bumped
Re: Wtf, why isn't my player spawning? -
willsuckformoney - 24.07.2010
i see absolutely no skin ids
Re: Wtf, why isn't my player spawning? -
Kar - 24.07.2010
Quote:
Originally Posted by willsuckformoney
i see absolutely no skin ids
|
Pointless Post. Spam.
its a roleplay.(looks like it) & when u gmx do u see ur onplayerrequestclass
Re: Wtf, why isn't my player spawning? -
straco - 24.07.2010
In ContinueLogin you use static id=2.
And try print coordinates in test message as float if is converted right
Re: Wtf, why isn't my player spawning? -
baske007 - 25.07.2010
Straco, that's right, I did that to see if the query was wrong.

And if I print the coords, they are just fine as a float.
And the id in the database is 2 :P
So, any ideas?
Thanks for the replys
Bas
ps And yes, it's roleplay
Re: Wtf, why isn't my player spawning? -
baske007 - 25.07.2010
<--Bump-->
Re: Wtf, why isn't my player spawning? -
bartje01 - 25.07.2010
You can do two hthnigs .
GO in your script and put SpawnPlayer(playerid); somehwere you like.
Or take a look at your onplayerrequestspawn
Re: Wtf, why isn't my player spawning? -
baske007 - 25.07.2010
Uhh, it's already in the script, and the first time I start the client I just spawn fine...
Thanks for the reply anyway
Re: Wtf, why isn't my player spawning? -
baske007 - 25.07.2010
--BuMp--
Srry :S But I can't continue my gamemode now, and I have a lot to do :S