30.12.2014, 17:39
Hello everyone , i'm trying to make pickups storing them in a array
Example :
I'm adding to each one a function using the statement switch but as far i know i can't use arrays in switch.. is there another way to do this?
Thanks!.
Example :
pawn Код:
new variable[10];
public OnGameModeInit()
{
variable[0] = CreatePickup(0,1,0,0,0,-1);
return 1;
}
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
switch(variable[])
{
case 0:
{
//
}
case 1:
{
//
}
case 2:
{
//
}
}
return 1;
}