SA-MP Forums Archive
[MYSQL] Not spawning correctly. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [MYSQL] Not spawning correctly. (/showthread.php?tid=487327)



[MYSQL] Not spawning correctly. - Lyksus - 12.01.2014

I am having some weird issue with my script.

pawn Код:
SetSpawnInfo(playerid, 0, 1, Player[playerid][PosX], Player[playerid][PosY], Player[playerid][PosZ]+1, Player[playerid][PosA], 0, 0, 0, 0, 0, 0);
This is the piece of code I use to spawn the player with. As you see, the Player[playerid][PosX], y, z and a are saved and successfully loaded. My problem is, that the player is spawning in the air. Not all times, but sometimes. Do you know what's wrong? Anyone?


Re: [MYSQL] Not spawning correctly. - Seif- - 12.01.2014

Are you sure it's saving/loading correctly? Did you debug it?