17.11.2013, 21:05
Eso sуlo se puede hacer con constantes.
e.j.
e.j.
pawn Код:
#define Pickup1 1
#define Pickup2 2
//o...
enum
{
Pickup1=1,
Pickup2
}
//o...
const Pickup1=1;
const Pickup2=2;
public OnPlayerPickUpPickup(playerid, pickupid)
{
switch(pickupid)
{
case Pickup1:
{
return 1;
}
case Pickup2:
{
return 1;
}
}
return 1;
}