problem with public onplayerupdate thing
#5

1 warning: (17039) : warning 217: loose indentation

Код:
public OnPlayerUpdate(playerid)
{
  new Float:HealthAmount; //done
	GetPlayerHealth(playerid, HealthAmount);

  if(HealthAmount <= 20)
  {
  SetPlayerPos(playerid, 0.0, 0.0, 0.0);
  }
  return 1;
}
how can i make that it teleports 1 time because when i have 20 hp it is going to teleport me 1000000000000000000000000 times
Reply


Messages In This Thread
problem with public onplayerupdate thing - by hardstop - 21.04.2010, 19:06
Re: problem with public onplayerupdate thing - by Nero_3D - 21.04.2010, 19:22
Re: problem with public onplayerupdate thing - by hardstop - 21.04.2010, 19:25
Re: problem with public onplayerupdate thing - by CAR - 21.04.2010, 19:44
Re: problem with public onplayerupdate thing - by hardstop - 21.04.2010, 19:55
Re: problem with public onplayerupdate thing - by CAR - 21.04.2010, 19:58
Re: problem with public onplayerupdate thing - by hardstop - 21.04.2010, 20:03

Forum Jump:


Users browsing this thread: 1 Guest(s)