GetPlayerPos
#1

I want to get player's x to make it posx, y to posy, z to posz. I wrote these but I got some errors.
Code:
      new posx, posy, posz;
			GetPlayerPos(playerid, posx, posy, posz);
Errors are 3 tag mistmatchs at 2nd line..
Reply
#2

Code:
GetPlayerPos(posx,posy,posz);
Reply
#3

Did you put your GetPlayerPos under your new? You shouldn't do that, try putting it in some sort of command.
Reply
#4

For that i know, positions are float.
Info here
Reply
#5

pawn Code:
new Float:posx, Float:posy, Float:posz;
Reply
#6

Quote:
Originally Posted by DragonYancy
View Post
I want to get player's x to make it posx, y to posy, z to posz. I wrote these but I got some errors.
Code:
      new posx, posy, posz;
			GetPlayerPos(playerid, posx, posy, posz);
Errors are 3 tag mistmatchs at 2nd line..
pawn Code:
new Float:x, Float:y, Float:z; //Create the floats, for GetPlayerPos they need to be floats, integers will give a tag mismatch.
GetPlayerPos(playerid, x, y, z); //Get the player position.
SetPlayerPos(playerid, x, y, z); //Do something with the position retrieved.
Reply
#7

Quote:
Originally Posted by Littlehelper[MDZ]
View Post
pawn Code:
new Float:posx, Float:posy, Float:posz;
Thank you sooo much
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)