Pickup Help
#1

Alright so i was wondering, when using

pawn Код:
CreatePickup
Does it have to be assigned as a Variable to make it work or can i just use it as pickup id 1 EX

pawn Код:
new ex1;
new ex2;

ex1 = CreatePickup(blah,blah)
ex2 = CreatePickup(blah,blah)
Or can i just do this

pawn Код:
CreatePickup(blah,blah)// Id=1
CreatePickup(blah,blah)// Id=2
And so it would look like this for OnPlayerPickupPickup

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
  if(pickupid == 1)
  {
    // Code here
  }
  if(pickupid == 2)
  {
    // Code here
  }
  return 1;
}
I am just wondering, because i am making a lot of pickups in my script and i don't want to use a shitload of variables.
Reply


Messages In This Thread
Pickup Help - by Steven82 - 11.10.2010, 14:25
Re: Pickup Help - by Rndom - 11.10.2010, 15:33
Re: Pickup Help - by Steven82 - 11.10.2010, 21:39
Re: Pickup Help - by Simon - 11.10.2010, 21:45

Forum Jump:


Users browsing this thread: 1 Guest(s)