disable gang queries ... because deleted false gangs
This commit is contained in:
parent
df4c33680e
commit
3699e2b5d9
@ -56,17 +56,17 @@ forward OnPlayerLeaveGang( playerid, gangid, reason );
|
|||||||
forward ZoneTimer( );
|
forward ZoneTimer( );
|
||||||
|
|
||||||
/* ** Hooks ** */
|
/* ** Hooks ** */
|
||||||
hook OnGameModeInit( )
|
/*hook OnGameModeInit( )
|
||||||
{
|
{
|
||||||
#if !defined DEBUG_MODE
|
#if !defined DEBUG_MODE
|
||||||
// Remove inactive gang members
|
// Remove inactive gang members
|
||||||
// mysql_single_query( "UPDATE `USERS` SET `GANG_ID`=-1 WHERE UNIX_TIMESTAMP()-`USERS`.`LASTLOGGED` > 1209600" );
|
// 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
|
// 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" );
|
// 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
|
#endif
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
/* ** Functions ** */
|
/* ** Functions ** */
|
||||||
stock SetPlayerGang( playerid, joining_gang )
|
stock SetPlayerGang( playerid, joining_gang )
|
||||||
|
Loading…
Reference in New Issue
Block a user