SirPlease / L4D2-Competitive-Rework

Just refreshing and optimizing the core files a bit, eh?
GNU General Public License v3.0
242 stars 131 forks source link

zonemod version l4d2_hybrid_scoremod_zone create library name l4d2_hybrid_scoremod_zone what never passed in other plugins #36

Closed Electr0 closed 4 years ago

Electr0 commented 5 years ago

for example in folder zonemod plugin spechud used standart name of library l4d2_hybrid_scoremod and checks for variable hybridScoringAvailable never passed (StrEqual compare all string content)


public OnAllPluginsLoaded()
{
       hybridScoringAvailable = LibraryExists("l4d2_hybrid_scoremod");
}
public OnLibraryRemoved(const String:name[])
{
      if (StrEqual(name, "l4d2_hybrid_scoremod", true))
      {
          hybridScoringAvailable = false;
      }
}
public OnLibraryAdded(const String:name[])
{
      if (StrEqual(name, "l4d2_hybrid_scoremod", true))
      {
          hybridScoringAvailable = true;
      }
}
SirPlease commented 4 years ago

Fixed in Zonemod 1.9.7 push