SA-MP Forums Archive
Some Errors during Compilation. - 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)
+--- Thread: Some Errors during Compilation. (/showthread.php?tid=512870)



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 ?