View Single Post
hmmmmm
Great Tester of Whatever
Join Date: Mar 2017
Location: ...
Old 07-11-2018 , 02:52   Re: Make a plugin depend in MySQL
Reply With Quote #2

You can use SetFailState to stop a plugin if something fails. Example:
PHP Code:
g_hDatabase SQL_Connect"Database-Name"trueerrorsizeof(error) );

if( 
g_hDatabase == null )
{
    
SetFailState"[SQL ERROR] %s"error );


Last edited by hmmmmm; 07-11-2018 at 02:53.
hmmmmm is offline