11.10.2010, 14:25
(
Последний раз редактировалось Steven82; 11.10.2010 в 14:28.
Причина: Had to fix the variables
)
Alright so i was wondering, when using
Does it have to be assigned as a Variable to make it work or can i just use it as pickup id 1 EX
Or can i just do this
And so it would look like this for OnPlayerPickupPickup
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.
pawn Код:
CreatePickup
pawn Код:
new ex1;
new ex2;
ex1 = CreatePickup(blah,blah)
ex2 = CreatePickup(blah,blah)
pawn Код:
CreatePickup(blah,blah)// Id=1
CreatePickup(blah,blah)// Id=2
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == 1)
{
// Code here
}
if(pickupid == 2)
{
// Code here
}
return 1;
}