GetPlayerPos Help
#1

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

pawn Code:
new Float:TeleX, Float:TeleY, Float:TeleZ;
GetPlayerPos(targetid, TeleX, TeleY, TeleZ);
SetPlayerPos(playerid, TeleX, TeleY, TeleZ+1);
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)