Advertisement
Guest User

isActivePackage ~ Darren

a guest
Apr 5th, 2013
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.19 KB | None | 0 0
  1. function isActivePackage(%opt)
  2. {
  3.     %packnum = GetNumActivePackages();
  4.     for(%i = 0 ; %i < %packnum - 1 ; %i++)
  5.     {
  6.         %p = getActivePackage(%i);
  7.         if(%p $= %opt)
  8.             return 1;
  9.     }
  10.     return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement