Question with OnPlayerUpdate
#4

Quote:
Originally Posted by BuLLeT[LTU]
Посмотреть сообщение
Nu per pirma update bus issauktas OnPlayerChangeAmmo ir prasidejus kitam update jis wel bus issauktas. Tai ar gali but kad dar nebus pasibaiges OnPlayerChangeAmmo visas perskaitymas sename patikrinime (nes kadangi OnPlayerUpdate yra issaukiamas labai daznai)?
Tada gali padaryti taip pries tos funkcijos issaukima:
pawn Код:
if(GetPVarInt(playerid, "function") != 1)
{
      // issauk ta funkcija
}
O pacioje funkcijoje gali:
pawn Код:
stock Funkcija(playerid)
{
         SetPVarInt(playerid, "function", 1);
         // ta visa funkcija

         // kai funkcija baigiasi:
         SetPVarInt(playerid, "function", 0);
}
Reply


Messages In This Thread
Question with OnPlayerUpdate - by BuLLeT[LTU] - 03.10.2011, 13:25
Re: Question with OnPlayerUpdate - by Universal - 03.10.2011, 13:31
Re: Question with OnPlayerUpdate - by BuLLeT[LTU] - 03.10.2011, 13:40
Re: Question with OnPlayerUpdate - by Universal - 03.10.2011, 13:55
Re: Question with OnPlayerUpdate - by BuLLeT[LTU] - 03.10.2011, 14:00
Re: Question with OnPlayerUpdate - by Jafet_Macario - 03.10.2011, 14:03
Re: Question with OnPlayerUpdate - by BuLLeT[LTU] - 03.10.2011, 14:04
Re: Question with OnPlayerUpdate - by KoczkaHUN - 03.10.2011, 14:05
Re: Question with OnPlayerUpdate - by Universal - 04.10.2011, 14:11

Forum Jump:


Users browsing this thread: 2 Guest(s)