23.02.2010, 17:16
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:
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?
}