Help with callbacks in Filterscripts
#3

Quote:
Originally Posted by dice7
If you open a blank script, you'd see a return 1;
And your OnPlayerPickUpPickup doesn't work, because you need to use if-else if to check the pickupid
I don't understood, what you ment, but here is what I have in my FSs
pawn Код:
new bizPickup;
new bizExitPickup;
new bizInfoPickup;
public OnFilterScriptInit()
{
    bizPickup = CreatePickup(...
    bizExitPickup = CreatePickup(...
    bizInfoPickup = CreatePickup(...
    return 0;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    printf("Pickup %i picked up ((filterscript))",pickupid);
    if(pickupid == bizPickup)
    {
       
        //code
        return 1;
    }

    if(pickupid == bizExitPickup)
    {
        //code
        return 1;
    }
    if(pickupid == bizInfoPickup)
    {
        //code
        return 1;
    }
    return 0;
}
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)