Help with callbacks in Filterscripts
#1

Hey,
I've asked for this earlier but nobody answered...
Why OnPlayerPickUpPickup sometimes doesn't gets called in some FSs when I pick up a pickup?
If I add line:
printf("Pickup %i picked up ((gamemode))",pickupid);
on that callback in my gamemode, I can see this message, and I put the same thing:
printf("Pickup %i picked up ((filterscript))",pickupid);
on one of my filterscript, and this doesn't shows up in console....

And another question:
Which is right:

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
  if(pickupid == blahblah)
  {
        //some code
  }
  return 1; // <----- THIS ONE
}

/*-------------OR---------------*/

public OnPlayerPickUpPickup(playerid, pickupid)
{
  if(pickupid == blahblah)
  {
        //some code
  }
  return 0; //<---- OR THIS ONE?
}
Reply


Messages In This Thread
Help with callbacks in Filterscripts - by SiJ - 23.02.2010, 17:16
Re: Help with Pickups in Filterscripts - by dice7 - 23.02.2010, 17:38
Re: Help with Pickups in Filterscripts - by SiJ - 23.02.2010, 18:56
Re: Help with Pickups in Filterscripts - by SiJ - 24.02.2010, 13:02
Re: Help with Pickups in Filterscripts - by Klutty - 24.02.2010, 13:52
Re: Help with Pickups in Filterscripts - by SiJ - 24.02.2010, 13:55
Re: Help with callbacks in Filterscripts - by SiJ - 25.02.2010, 14:16

Forum Jump:


Users browsing this thread: 1 Guest(s)