Warning 202 errors! -
VG-Josh - 15.11.2011
Hey.
Today i started coding my SAMP game mode but i have a problem. i get 3 202 warnings..
Код:
C:\Users\joshwaaa1\Desktop\samp\gamemodes\VGTA.pwn(59) : warning 202: number of arguments does not match definition
C:\Users\joshwaaa1\Desktop\samp\gamemodes\VGTA.pwn(61) : warning 202: number of arguments does not match definition
C:\Users\joshwaaa1\Desktop\samp\gamemodes\VGTA.pwn(62) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Warnings.
and here is what it says is wrong
Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,263.3580,-1333.7350,53.2230,34);
SetPlayerFacingAngle(playerid,90.0);
SetPlayerCameraPos(playerid,261.1640,-1330.5740,53.2302,34.7661);
SetPlayerCameraLookAt(playerid,263.3580,-1333.7350,53.2230,34);
return 1;
}
please tell me what is wrong! Thanks
Re: Warning 202 errors! -
BlackWolf120 - 15.11.2011
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,263.3580,-1333.7350,53.2230);
SetPlayerFacingAngle(playerid,90.0);
SetPlayerCameraPos(playerid,261.1640,-1330.5740,53.2302);
SetPlayerCameraLookAt(playerid,263.3580,-1333.7350,53.2230);
return 1;
}
Re: Warning 202 errors! -
SmiT - 15.11.2011
The number of arguments passed to the function (actual arguments) differs from the number of format arguments declared in the function heading, see -
https://sampwiki.blast.hk/wiki/SetPlayerPos
https://sampwiki.blast.hk/wiki/SetPlayerCameraPos
https://sampwiki.blast.hk/wiki/SetPlayerCameraLookAt
Re: Warning 202 errors! -
Edvin - 15.11.2011
SetPlayerPos(playerid,263.3580,-1333.7350,53.2230); - This is my fixed code
Parameters: SetPlayerPos( playerid, X, Y, Z );
SetPlayerCameraPos(playerid,261.1640,-1330.5740,53.2302); - This is my fixed code
Parameters: SetPlayerCameraPos( playerid, X, Y, Z );
SetPlayerCameraLookAt(playerid,263.3580,-1333.7350,53.2230); - This is my fixed code
Parameters: SetPlayerCameraLookAt( playerid, X, Y, Z );
Re: Warning 202 errors! -
VG-Josh - 15.11.2011
Quote:
Originally Posted by BlackWolf120
pawn Код:
public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid,263.3580,-1333.7350,53.2230); SetPlayerFacingAngle(playerid,90.0); SetPlayerCameraPos(playerid,261.1640,-1330.5740,53.2302); SetPlayerCameraLookAt(playerid,263.3580,-1333.7350,53.2230); return 1; }
|
I did that now i get 4 errors
Код:
C:\Users\joshwaaa1\Desktop\samp\gamemodes\VGTA.pwn(59) : warning 202: number of arguments does not match definition
C:\Users\joshwaaa1\Desktop\samp\gamemodes\VGTA.pwn(60) : warning 217: loose indentation
C:\Users\joshwaaa1\Desktop\samp\gamemodes\VGTA.pwn(61) : warning 202: number of arguments does not match definition
C:\Users\joshwaaa1\Desktop\samp\gamemodes\VGTA.pwn(62) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Warnings
Re: Warning 202 errors! -
VG-Josh - 15.11.2011
Quote:
Originally Posted by BlackWolf120
pawn Код:
public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid,263.3580,-1333.7350,53.2230); SetPlayerFacingAngle(playerid,90.0); SetPlayerCameraPos(playerid,261.1640,-1330.5740,53.2302); SetPlayerCameraLookAt(playerid,263.3580,-1333.7350,53.2230); return 1; }
|
Ah ha that fixed it Thanks
Re: Warning 202 errors! -
BlackWolf120 - 15.11.2011
np
Re: Warning 202 errors! -
vassilis - 15.11.2011
as blackwolf said you have add and the Float:angle SetPlayerCameraPos..this is why there is a fuction SetPlayerFacingAngle ..but nvm blackwolf was faster