Warning 202 errors!
#1

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

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

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

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

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

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

np
Reply
#8

as blackwolf said you have add and the Float:angle SetPlayerCameraPos..this is why there is a fuction SetPlayerFacingAngle ..but nvm blackwolf was faster
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)