Some Errors during Compilation. -
Laure - 13.05.2014
I got invalid function call in the give first two line while compiling, please correct if theres anything wrong.
pawn Код:
SetPlayerPos = GetPlayerPos(playerid, PlayerInfo[playerid][pX], PlayerInfo[playerid][pY], PlayerInfo[playerid[pZ]);// this line and
SetPlayerCameraPos=GetPlayerCameraPos(playerid,PlayerInfo[playerid[cX],PlayerInfo[playerid[cY],PlayerInf[cZ]);// this line
SetPlayerCameraLookAt(playerid, Float:cX, Float:cY, Float:cZ);
Re: Some Errors during Compilation. -
SAMProductions - 13.05.2014
What errors did it give to you ?
EDIT :-
Do you have,
PlayerInfo[playerid][pX], PlayerInfo[playerid][pY], PlayerInfo[playerid][pZ],
PlayerInfo[playerid][cX], PlayerInfo[playerid][cY], and PlayerInfo[playerid][cZ]
on your "
enum PlayerInfo" or "
enum pInfo" ?
Re: Some Errors during Compilation. -
Laure - 13.05.2014
Yep i got it and error is Invalid function call.
Re: Some Errors during Compilation. -
IceBilizard - 13.05.2014
don't use
SetPlayerPos =
use
SetPlayerPos(
Re: Some Errors during Compilation. -
SAMProductions - 13.05.2014
Try to change,
Код:
SetPlayerCameraLookAt(playerid, Float:cX, Float:cY, Float:cZ);
to
Код:
SetPlayerCameraLookAt(playerid, PlayerInfo[playerid[cX], PlayerInfo[playerid[cY], PlayerInfo[playerid[cZ]);
Re: Some Errors during Compilation. -
IceBilizard - 13.05.2014
pawn Код:
SetPlayerPos( PlayerInfo[playerid][pX], PlayerInfo[playerid][pY], PlayerInfo[playerid[pZ]);
SetPlayerCameraPos( PlayerInfo[playerid[cX],PlayerInfo[playerid[cY],PlayerInf[cZ]);
SetPlayerCameraLookAt(playerid, Float:cX, Float:cY, Float:cZ);
Re: Some Errors during Compilation. -
Laure - 13.05.2014
I did them all yep i dont get errors while compiling but it doesnt work like it should.
Re: Some Errors during Compilation. -
SAMProductions - 13.05.2014
Where's
Код:
SetPlayerPos = GetPlayerPos(playerid, PlayerInfo[playerid][pX], PlayerInfo[playerid][pY], PlayerInfo[playerid[pZ]);// this line and
SetPlayerCameraPos=GetPlayerCameraPos(playerid,PlayerInfo[playerid[cX],PlayerInfo[playerid[cY],PlayerInf[cZ]);// this line
SetPlayerCameraLookAt(playerid, Float:cX, Float:cY, Float:cZ);
Located (?)
What callback ?