SA-MP Forums Archive
SetPlayerCameraPos - 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: SetPlayerCameraPos (/showthread.php?tid=535540)



SetPlayerCameraPos - Roel - 04.09.2014

Hello

I'm working with the SetPlayerCameraPos function, but it doesnt work.
When I exexute the following code nothing happends;

Код:
	new Float:pos[3];
	GetPlayerPos(playerid,pos[0],pos[1],pos[2]);
  	SetPlayerCameraPos(playerid,pos[0],pos[1],pos[2]+3);



Re: SetPlayerCameraPos - Hirsw0w - 04.09.2014

maybe some reason the function return 0 ( failed )
do it and write here what that write.

Код:
printf("set camera pos: %d",SetPlayerCameraPos(playerid,pos[0],pos[1],pos[2]+3));