Problem
#3

HTML Code:
public OnGameModeExit()
{
    foreach(new i: Player) OnPlayerDisconnect(i, 1);
    //--------------------------------------------------------------------------
    new x;
	//--------------------------------------------------------------------------
    while (x<500)
	{
        if (x!=(0xFFFF))
		{
            CallRemoteFunction("OnPlayerDisconnect", "i", x);
        }
        ++ x;
    }
    //--------------------------------------------------------------------------
	new ls_Query[1024];
	//--------------------------------------------------------------------------
	for (new i = 1; i < MAX_GANGS; i++)
	{
	    format(ls_Query, sizeof(ls_Query), "UPDATE `GangTers` SET `GangTerOwner` = '%d' WHERE `ID` = '%d'", Teritories[i][owner], i);
	    mysql_tquery(DB_Connect, ls_Query, "", "");
	}
	//--------------------------------------------------------------------------
	OnUpdate(); mysql_close(DB_Connect);
	//--------------------------------------------------------------------------
	return 1;
}
Reply


Messages In This Thread
Problem - by SeeNN - 08.02.2019, 02:17
Re: Problem - by AhmedMohamed - 08.02.2019, 03:44
Re: Problem - by SeeNN - 08.02.2019, 04:41
Re: Problem - by Florin48 - 08.02.2019, 08:35
Re: Problem - by Kane - 08.02.2019, 08:52
Re: Problem - by SeeNN - 08.02.2019, 08:55
Re: Problem - by AhmedMohamed - 08.02.2019, 10:29

Forum Jump:


Users browsing this thread: 1 Guest(s)