From 3699e2b5d965ebdb1855d152b4c9e40c7b87f81f Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Wed, 4 Jul 2018 03:34:48 +1000 Subject: [PATCH] disable gang queries ... because deleted false gangs --- pawno/include/irresistible/features/gangs/gangs.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pawno/include/irresistible/features/gangs/gangs.inc b/pawno/include/irresistible/features/gangs/gangs.inc index bac29f4..b79c7a2 100644 --- a/pawno/include/irresistible/features/gangs/gangs.inc +++ b/pawno/include/irresistible/features/gangs/gangs.inc @@ -56,17 +56,17 @@ forward OnPlayerLeaveGang( playerid, gangid, reason ); forward ZoneTimer( ); /* ** Hooks ** */ -hook OnGameModeInit( ) +/*hook OnGameModeInit( ) { #if !defined DEBUG_MODE // Remove inactive gang members // mysql_single_query( "UPDATE `USERS` SET `GANG_ID`=-1 WHERE UNIX_TIMESTAMP()-`USERS`.`LASTLOGGED` > 1209600" ); - // Remove gangs with a non existant gang leader / unmatched player gang id to gang leader id - mysql_single_query( "DELETE g FROM GANGS g LEFT JOIN USERS u ON g.LEADER = u.ID WHERE (u.GANG_ID != g.ID OR u.ID IS NULL) AND g.LEADER >= 0" ); + // Remove gangs with a non existant gang leader / unmatched player gang id to gang leader id (***broken query***) + // mysql_single_query( "DELETE g FROM GANGS g LEFT JOIN USERS u ON g.LEADER = u.ID WHERE (u.GANG_ID != g.ID OR u.ID IS NULL) AND g.LEADER >= 0" ); #endif return 1; -} +}*/ /* ** Functions ** */ stock SetPlayerGang( playerid, joining_gang )