15.02.2011, 21:09
Hello. I wanted to as about using loop in this situation:
Will it make a lag to players ?
is it better to use
if(pickupid == Pickip[0]) till Pickup[149] ?
o use switch(pickupid) ?
But it will take a lot of space as a code..
pawn Код:
public OnPlayerPickUpPickup(playerid,pickupid)
{
Loop(i,150)
{
if(pickupid == Pickup[i])
{
code..
}
}
Loop(i,76)
{
if(pickupid == EntrancePickup[i])
{
code..
}
}
return 1;
}
is it better to use
if(pickupid == Pickip[0]) till Pickup[149] ?
o use switch(pickupid) ?
But it will take a lot of space as a code..