GetPlayerPos Help - 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 Help (
/showthread.php?tid=351323)
GetPlayerPos Help -
lewismichaelbbc - 15.06.2012
I want to make this happen:
new playerpos1;
new Float:X, Float:Y, Float:Z;
playerpos1 = GetPlayerPos(playerid, X, Y, Z
then in another command i use
/gotomark
SetPlayerPos(playerid, playerpos1);
But that code doesnt work... How can i make it?
Thanks
Re: GetPlayerPos Help -
Face9000 - 15.06.2012
pawn Code:
new Float:TeleX, Float:TeleY, Float:TeleZ;
GetPlayerPos(targetid, TeleX, TeleY, TeleZ);
SetPlayerPos(playerid, TeleX, TeleY, TeleZ+1);
Re: GetPlayerPos Help -
lewismichaelbbc - 15.06.2012
This isnt what i ment...
I have created some new code:
Code:
GetPlayerPos(playerid, garageplayerpos[giveplayerid][0],garageplayerpos[giveplayerid][1],garageplayerpos[giveplayerid][2]);
SetPlayerPos(playerid, garageplayerpos[giveplayerid][0],garageplayerpos[giveplayerid][1],garageplayerpos[giveplayerid][2]);
But to make the garageplayerpos work, i need to add a 'new' thing at the top, how can i do that? is it:
garageplayerpos[MAX_PLAYERS][2]; ??