SA-MP Forums Archive
What's Wrong? - 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: What's Wrong? (/showthread.php?tid=261775)



What's Wrong? - jot16 - 15.06.2011

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?


Re: What's Wrong? - Shelby - 15.06.2011

Код:
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.


Re: What's Wrong? - jot16 - 15.06.2011

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