GetPlayerPos - 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: GetPlayerPos (
/showthread.php?tid=351040)
GetPlayerPos -
DragonYancy - 14.06.2012
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..
Re: GetPlayerPos -
Aloushi - 14.06.2012
Code:
GetPlayerPos(posx,posy,posz);
Re: GetPlayerPos -
Mike97300 - 14.06.2012
Did you put your GetPlayerPos under your new? You shouldn't do that, try putting it in some sort of command.
Re: GetPlayerPos - kikito - 14.06.2012
For that i know, positions are
float.
Info
here
Re: GetPlayerPos -
Littlehelper - 14.06.2012
pawn Code:
new Float:posx, Float:posy, Float:posz;
Re: GetPlayerPos -
Revo - 14.06.2012
Quote:
Originally Posted by DragonYancy
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.
Re: GetPlayerPos -
DragonYancy - 14.06.2012
Quote:
Originally Posted by Littlehelper[MDZ]
pawn Code:
new Float:posx, Float:posy, Float:posz;
|
Thank you sooo much