OnFilterScriptInit not initializing properly
#1

I've created a filterscript that's loading properly. However, I want a message to print upon the initialization of said filterscript:

pawn Код:
public OnFilterScriptInit() {
    cursor = mysql_connect(HOST, USER, PASSWORD, DATABASE);
   
    print("Initializing samp-streets.");

    if(mysql_errno(cursor) != 0) {
        printf("samp-streets: Couldn't establish connection to \'%s\'.\nReason: %d | Reference: https://*******/2nU9uiB", DATABASE, mysql_errno(cursor));
        return SendRconCommand("unloadfs samp-streets");
    } else {
        printf("samp-streets: Connection to \'%s\' was established.", DATABASE);
    }

    return 1;
}
The filterscript loads fine:

Код:
Filterscripts
---------------
  Loading filterscript 'street-maker.amx'...
  Loaded 1 filterscripts.
But it does not print the first message in the first print statement. This is the entire code, for reference: hastebin link.

I did check this thread from Marcel: https://sampforum.blast.hk/showthread.php?tid=602193 — no helpful answer was given.
Reply


Messages In This Thread
OnFilterScriptInit not initializing properly - by GRiMMREAPER - 21.08.2018, 21:38
Re: OnFilterScriptInit not initializing properly - by Dignity - 21.08.2018, 21:48
Re: OnFilterScriptInit not initializing properly - by GRiMMREAPER - 21.08.2018, 21:55
Re: OnFilterScriptInit not initializing properly - by UFF - 22.08.2018, 05:26
Re: OnFilterScriptInit not initializing properly - by GRiMMREAPER - 22.08.2018, 07:57

Forum Jump:


Users browsing this thread: 1 Guest(s)