Wtf, why isn't my player spawning?
#1

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
Reply
#2

-- bump--
i'm now going to sleep, so I bumped
Reply
#3

i see absolutely no skin ids
Reply
#4

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
Reply
#5

In ContinueLogin you use static id=2.

And try print coordinates in test message as float if is converted right
Reply
#6

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
Reply
#7

<--Bump-->
Reply
#8

You can do two hthnigs .
GO in your script and put SpawnPlayer(playerid); somehwere you like.
Or take a look at your onplayerrequestspawn
Reply
#9

Uhh, it's already in the script, and the first time I start the client I just spawn fine...
Thanks for the reply anyway
Reply
#10

--BuMp--
Srry :S But I can't continue my gamemode now, and I have a lot to do :S
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)