Some Errors during Compilation.
#1

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

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" ?
Reply
#3

Yep i got it and error is Invalid function call.
Reply
#4

don't use

SetPlayerPos =

use

SetPlayerPos(
Reply
#5

Try to change,
Код:
SetPlayerCameraLookAt(playerid, Float:cX, Float:cY, Float:cZ);
to
Код:
SetPlayerCameraLookAt(playerid, PlayerInfo[playerid[cX], PlayerInfo[playerid[cY], PlayerInfo[playerid[cZ]);
Reply
#6

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

I did them all yep i dont get errors while compiling but it doesnt work like it should.
Reply
#8

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


Forum Jump:


Users browsing this thread: 1 Guest(s)