What's Wrong?
#1

Here is the code:
Quote:

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 537.2949,-1338.3944,330.0503);
GetPlayerFacingAngle(playerid,205.9541);
SetPlayerCameraPos(playerid, 1539.7057,-1347.0747,329.4706);
SetPlayerCameraLookAt(playerid, 1537.2949,-1338.3944,330.0503);
return 1;
}

This is the error:
Quote:

C:\Users\Jot\Desktop\Test.pwn(104) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

can sum1 plz fix it for me.

Note:i didn't add any skins yet.is this causing the problem cuz of that?
Reply
#2

Код:
public OnPlayerRequestClass(playerid, classid)
 {
 SetPlayerPos(playerid, 537.2949,-1338.3944,330.0503);
 GetPlayerFacingAngle(playerid,205.9541);
 SetPlayerCameraPos(playerid, 1539.7057,-1347.0747,329.4706);
 SetPlayerCameraLookAt(playerid, 1537.2949,-1338.3944,330.0503);
 return 1;
 }
I think you meant SetPlayerFacingAngle.
Reply
#3

problem solved now.It was an silly mistake.thx Larceny
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)