Pickup problem
#6

Quote:
Originally Posted by Jimbo01
Посмотреть сообщение
yea i did that...
pawn Код:
AddStaticPickup(1239, 2, 2176.3914,-2258.8840,14.7734, 0);
This doesn't really return any kind of pickupid so you must use CreatePickup like the following:-

pawn Код:
new YOUR_VAR; // on top

YOUR_VAR = CreatePickup( 1239, 2, 2176.3914,-2258.8840,14.7734, 0 ); // on gamemode init

public OnPlayerPickUpPickup( playerid, pickupid )
{
    if( pickupid == YOUR_VAR )
    {
        // your function
    }
    return 1;
}
CreatePickup works same as AddStaticPickup but it does return a pickup id.

Hope this helps
-FalconX
Reply


Messages In This Thread
Pickup problem - by Jimbo01 - 01.06.2012, 22:25
Re: Pickup problem - by Sandiel - 01.06.2012, 22:32
Re: Pickup problem - by Jonny5 - 01.06.2012, 22:35
Re: Pickup problem - by Jimbo01 - 01.06.2012, 22:42
Re: Pickup problem - by Sandiel - 01.06.2012, 22:48
Re: Pickup problem - by FalconX - 01.06.2012, 22:48

Forum Jump:


Users browsing this thread: 1 Guest(s)