View Single Post
santdrback
Member
Join Date: Apr 2020
Old 11-28-2022 , 21:01   Re: [L4D2] Gifts Drop & Spawn
Reply With Quote #94

Quote:
Originally Posted by Marttt View Post
If you don't want these messages you have three options:

1) Remove the "LogError(..." lines.

or

2) Change the OnConfigsExecuted method to this:

PHP Code:
public void OnConfigsExecuted()
{
    
GetCvars();

    
// if (!ConnectDB())
    // {
        // LogError("Connecting to database failed. Read error log for further details.");
        // LogError("[GIFTS] Not database found. Points is disabled");
        // bDatabase = false;
    // }
    // else
    // {
        // bDatabase = true;
    // }

or

3) Btw here is a version attached with a new cvar that does that:
l4d2_gifts_databaseconnect, default: 1, Should try to connect to a database?
Probably you have to add it to your already generated l4d2_gifts.cfg config file and set to 0.

Notes:
  • All the previous files from the .zip are still necessary
  • Won't compile through "Get Plugin" cause has external includes.
no work in sourcemod 1.11
santdrback is offline