SA-MP Forums Archive
Player class camera problem ? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Player class camera problem ? (/showthread.php?tid=145836)



Player class camera problem ? - BigM - 04.05.2010

Can someone help me with this,i get this error:

....\Desktop\samp03asvr_R4_win32\gamemodes\LVRP.pw n(89) : warning 202: number of arguments does not match definition

Because of this:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid,  2856.8262,1300.6563,11.3906);
    SetPlayerCameraPos(playerid, 2862.3271,1300.7689,11.1097,86.3286);
    SetPlayerCameraLookAt(playerid, 2856.8262,1300.6563,11.3906);
    return 1;
}



Re: Player class camera problem ? - Torran - 04.05.2010

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,  2856.8262,1300.6563,11.3906);
SetPlayerCameraPos(playerid, 2862.3271,1300.7689,11.1097);
SetPlayerCameraLookAt(playerid, 2856.8262,1300.6563,11.3906);
return 1;
}



Re: Player class camera problem ? - BigM - 04.05.2010

Problem is solved,i puted the wrong camera code:

This was wrong camera code:
pawn Код:
SetPlayerCameraPos(playerid, 2862.3271,1300.7689,11.1097,86.3286);
And this is correct one:
pawn Код:
SetPlayerCameraPos(playerid,2862.3271,1300.7689,11.1097);
Last 4 numbers were wrong


Re: Player class camera problem ? - Torran - 04.05.2010

Quote:
Originally Posted by BigM
Problem is solved,i puted the wrong camera code:

This was wrong camera code:
pawn Код:
SetPlayerCameraPos(playerid, 2862.3271,1300.7689,11.1097,86.3286);
And this is correct one:
pawn Код:
SetPlayerCameraPos(playerid,2862.3271,1300.7689,11.1097);
Last 4 numbers were wrong
Ahem look at my post


Re: Player class camera problem ? - BigM - 04.05.2010

How did you know which numbers were wrong,and how you know the correct numbers ?


Re: Player class camera problem ? - Torran - 04.05.2010

Because of the order you put them in ofc ,
You added the angle aswell, So i deleted it


Re: Player class camera problem ? - BigM - 04.05.2010

Quote:
Originally Posted by Joe Torran C
Because of the order you put them in ofc ,
You added the angle aswell, So i deleted it
How do i change facing angle so in player class peds
are not standing on the right or the left way


Re: Player class camera problem ? - Torran - 04.05.2010

Quote:
Originally Posted by BigM
Quote:
Originally Posted by Joe Torran C
Because of the order you put them in ofc ,
You added the angle aswell, So i deleted it
How do i change facing angle so in player class peds
are not standing on the right or the left way
https://sampwiki.blast.hk/wiki/SetPlayerFacingAngle


Re: Player class camera problem ? - BigM - 04.05.2010

Thanks
One more question,how is Officer Pulaski in my player class
and i didnt puted him in the script