SA-MP Forums Archive
Player Class selection scene bug - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Player Class selection scene bug (/showthread.php?tid=567428)



Player Class selection scene bug - dimashr12345 - 13.03.2015

Hey, guys!

So, I created my own game mode from scratch. I added about 7 player classes, and I am having a bug at the selection scene. I can easily switch between the classes and choose them, but I cannot see the skin. Is this a scripting problem, or what?


Re: Player Class selection scene bug - CalvinC - 13.03.2015

Most likely yes.
It could be because of using SetCameraPos or SetCameraLookAt to be somewhere else than where the actual skins are, but you should try showing your code.


Re: Player Class selection scene bug - dimashr12345 - 13.03.2015

I did check my script, and found out that SetCameraPos and SetCameraLookAt were set at different locations. So, I changed the co-ordinates to the same ones as SetPlayerPos. This changed the camera location to the right one, but I still didn't see the skins.


Re: Player Class selection scene bug - Sew_Sumi - 13.03.2015

Код:
SetPlayerInterior(playerid,intid);
SetPlayerPos(playerid,xxx,yyy,zzz);
SetPlayerFacingAngle(playerid,playerzr);
SetPlayerCameraPos(playerid,xxx,yyy,zzz);
SetPlayerCameraLookAt(playerid,xxx,yyy,zzz);
You'll be missing the SetPlayerPosition, and maybe the SetPlayerInterior, on the callback OnPlayerRequestClass.

Quote:
Originally Posted by dimashr12345
Посмотреть сообщение
So, I changed the co-ordinates to the same ones as SetPlayerPos.
You may also be inside the skin.


Re: Player Class selection scene bug - dimashr12345 - 15.03.2015

Quote:

You may also be inside the skin.

This was the problem, thanks. I changed the player position, and now everything functions all right.


Re: Player Class selection scene bug - Sew_Sumi - 15.03.2015

Awesome to hear.