21.08.2018, 21:38
I've created a filterscript that's loading properly. However, I want a message to print upon the initialization of said filterscript:
The filterscript loads fine:
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.
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;
}
Код:
Filterscripts --------------- Loading filterscript 'street-maker.amx'... Loaded 1 filterscripts.
I did check this thread from Marcel: https://sampforum.blast.hk/showthread.php?tid=602193 — no helpful answer was given.