SA-MP Forums Archive
RequestSpawn + Spawn(playerid) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: RequestSpawn + Spawn(playerid) (/showthread.php?tid=316715)



RequestSpawn + Spawn(playerid) - Lorenc_ - 08.02.2012

I have this issue whereas in 0.3d if I use inside a dialog; "SpawnPlayer" while the player is in class selection it'll randomly kick you and notice with "Server Lost Connection".

This hasn't happened on 0.3c and it's not script-wise, I've tried on 2 different scripts. Can someone confirm?


Re: RequestSpawn + Spawn(playerid) - MP2 - 08.02.2012

You have to use SetSpawnInfo before.


Re: RequestSpawn + Spawn(playerid) - Lorenc_ - 08.02.2012

Quote:
Originally Posted by MP2
Посмотреть сообщение
You have to use SetSpawnInfo before.
Really? Is there a explanation to why this is so? Spawn(playerid) is much more convenient.


Re: RequestSpawn + Spawn(playerid) - T0pAz - 08.02.2012

Include this library on your script. There is a bug introduced on SA-MP 0.3d R2 which kicks the player when SpawnPlayer() has been called without SetSpawnInfo.