Player class camera problem ?
#1

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;
}
Reply
#2

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;
}
Reply
#3

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
Reply
#4

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
Reply
#5

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

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

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
Reply
#8

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
Reply
#9

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


Forum Jump:


Users browsing this thread: 1 Guest(s)