Checking if position is already stored
#1

Hey guys, im trying to check if the players position is already stored in the variables, but cant really figure out how..

On top of my script i have:

pawn Код:
new Float:X1[MAX_PLAYERS];
new Float:Y1[MAX_PLAYERS];
new Float:Z1[MAX_PLAYERS];

Then my command:

pawn Код:
dcmd_acsav(playerid, params[])
{
  new Choice = strval(params);

  if(Choice == 1) {
    if(!X1[playerid] && Y1[playerid] && Z1[playerid] > 0)) { // This wont really work lol
      GetPlayerPos(playerid, X1[playerid], Y1[playerid], Z1[playerid]);
    }
  }
  return 1;
}
Any1 know how?
Thnx
Reply


Messages In This Thread
Checking if position is already stored - by Robbin237 - 12.04.2009, 09:10
Re: Checking if position is already stored - by MenaceX^ - 12.04.2009, 09:31
Re: Checking if position is already stored - by Rks25 - 12.04.2009, 09:54
Re: Checking if position is already stored - by Robbin237 - 12.04.2009, 10:07
Re: Checking if position is already stored - by Rks25 - 12.04.2009, 10:26

Forum Jump:


Users browsing this thread: 2 Guest(s)