[Tutorial] Admin /mark and /gotomark Command
#2

Good!
Here's a little tip to make it a bit more efficient:

This is what you currently have:
pawn Код:
new Float:X, Float:Y, Float:Z; //variable to find player's X Y Z position.
GetPlayerPos(playerid, X, Y, Z); // Getting the player's X Y Z position.
PosX[playerid] = X; //assigning the players position we got to a different player variable.
PosY[playerid] = Y; //assigning the players position we got to a different player variable.
PosZ[playerid] = Z; //assigning the players position we got to a different player variable.
But you don't need to create all these extra variables because you can store them in the players' variables right away:
pawn Код:
GetPlayerPos(playerid, PosX[playerid], PosY[playerid], PosZ[playerid]);
Reply


Messages In This Thread
Admin /mark and /gotomark Command - by Sid_Alexander - 06.01.2015, 17:49
Re: Admin /mark and /gotomark Command - by Schneider - 06.01.2015, 18:14
Re: Admin /mark and /gotomark Command - by Sid_Alexander - 06.01.2015, 18:17
Re: Admin /mark and /gotomark Command - by TheRaGeLord - 08.01.2015, 14:03
Re: Admin /mark and /gotomark Command - by Sid_Alexander - 09.01.2015, 10:28

Forum Jump:


Users browsing this thread: 2 Guest(s)