[FilterScript] DGang [Dini,SSCANF,ZCMD]
#14

Quote:
Originally Posted by Vince
View Post
Dini ...

Come on, man! Don\'t use old super slow methods.

pawn Code:
CMD:topgangs(playerid,params[])
{

    new string[1000], Slot1 = -1, Slot2 = -1, Slot3 = -1, Slot4 = -1,Slot5 = -1;
    new Kills = -9999;
    for(new x=0; x<2000; x++)
    if(dini_Exists(gFileId(x)))
    if(dini_Int(gFileId(x),"Kills") >= Kills)
    {
        Kills = dini_Int(gFileId(x),"Kills");
        Slot1 = x;
    }
    Kills = -9999;
    for(new x=0; x<2000; x++)
    if(dini_Exists(gFileId(x)) && x != Slot1)
    if(dini_Int(gFileId(x),"Kills") >= Kills)
    {
        Kills = dini_Int(gFileId(x),"Kills");
        Slot2 = x;
    }
    Kills = -9999;
    for(new x=0; x<2000; x++)
    if(dini_Exists(gFileId(x)) && x != Slot1 && x != Slot2)
    if(dini_Int(gFileId(x),"Kills") >= Kills)
    {
        Kills = dini_Int(gFileId(x),"Kills");
        Slot3 = x;
    }
    Kills = -9999;
    for(new x=0; x<2000; x++)
    if(dini_Exists(gFileId(x)) && x != Slot1 && x != Slot2 && x != Slot3)
    if(dini_Int(gFileId(x),"Kills") >= Kills)
    {
        Kills = dini_Int(gFileId(x),"Kills");
        Slot4 = x;
    }
    Kills = -9999;
    for(new x=0; x<2000; x++)
    if(dini_Exists(gFileId(x)) && x != Slot1 && x != Slot2 && x != Slot3 && x != Slot4)
    if(dini_Int(gFileId(x),"Kills") >= Kills)
    {
        Kills = dini_Int(gFileId(x),"Kills");
        Slot5 = x;
    }


A.K.A. lagging the server by opening a file 20,000 times.
Well Yeah man i had to do with Dini cuz when i use y_ini there are some mismatches in files , Well Thanks for informing i might update it to yini in future.


Well I Have A Symbol to stop the Lag , First The System Checks If Dini Exists, And Already You Can Edit The Money And Score So That There can be less creations of gangs.
Reply


Messages In This Thread
DGang [Dini,SSCANF,ZCMD] - by -=Dar[K]Lord=- - 17.06.2013, 07:58
Re: DGang [Dini,SSCANF,ZCMD] - by dEcooR - 17.06.2013, 14:05
Re: DGang [Dini,SSCANF,ZCMD] - by -=Dar[K]Lord=- - 17.06.2013, 15:01
Re: DGang [Dini,SSCANF,ZCMD] - by AldoT - 17.06.2013, 15:30
Re: DGang [Dini,SSCANF,ZCMD] - by -=Dar[K]Lord=- - 17.06.2013, 17:18
Re: DGang [Dini,SSCANF,ZCMD] - by TheChimpJr - 17.06.2013, 17:42
Re: DGang [Dini,SSCANF,ZCMD] - by -=Dar[K]Lord=- - 17.06.2013, 17:50
Re: DGang [Dini,SSCANF,ZCMD] - by XtremeR - 18.06.2013, 02:42
Re: DGang [Dini,SSCANF,ZCMD] - by -=Dar[K]Lord=- - 18.06.2013, 16:11
Re: DGang [Dini,SSCANF,ZCMD] - by M3mPHi$_S3 - 19.06.2013, 10:11
Re: DGang [Dini,SSCANF,ZCMD] - by -=Dar[K]Lord=- - 19.06.2013, 11:42
Re: DGang [Dini,SSCANF,ZCMD] - by HaiderABbas - 19.06.2013, 20:57
Re: DGang [Dini,SSCANF,ZCMD] - by Vince - 19.06.2013, 21:05
Re: DGang [Dini,SSCANF,ZCMD] - by -=Dar[K]Lord=- - 20.06.2013, 06:20
Respuesta: DGang [Dini,SSCANF,ZCMD] - by RycherserK - 20.06.2013, 10:08
Re: DGang [Dini,SSCANF,ZCMD] - by -=Dar[K]Lord=- - 20.06.2013, 11:14
Re: DGang [Dini,SSCANF,ZCMD] - by travel - 25.06.2013, 09:44
Re: DGang [Dini,SSCANF,ZCMD] - by -=Dar[K]Lord=- - 25.06.2013, 10:09
Re: DGang [Dini,SSCANF,ZCMD] - by -=Dar[K]Lord=- - 30.06.2013, 14:28
Re: DGang [Dini,SSCANF,ZCMD] - by Salsa - 30.06.2013, 15:01
Re: DGang [Dini,SSCANF,ZCMD] - by [IND]Crazy - 30.06.2013, 15:15
Re: DGang [Dini,SSCANF,ZCMD] - by [IND]Crazy - 30.06.2013, 15:30
Re: DGang [Dini,SSCANF,ZCMD] - by -=Dar[K]Lord=- - 30.06.2013, 17:37
Re: DGang [Dini,SSCANF,ZCMD] - by [IND]Crazy - 01.07.2013, 01:00
Re: DGang [Dini,SSCANF,ZCMD] - by -=Dar[K]Lord=- - 01.07.2013, 05:56
Re: DGang [Dini,SSCANF,ZCMD] - by [IND]Crazy - 01.07.2013, 06:22
Re: DGang [Dini,SSCANF,ZCMD] - by kN1GhT - 07.07.2013, 13:08
Re: DGang [Dini,SSCANF,ZCMD] - by DerickClark - 08.07.2013, 05:08
Re: DGang [Dini,SSCANF,ZCMD] - by dEcooR - 26.07.2013, 14:39
Re: DGang [Dini,SSCANF,ZCMD] - by -=Dar[K]Lord=- - 28.07.2013, 14:32
Re: DGang [Dini,SSCANF,ZCMD] - by dEcooR - 28.07.2013, 15:09
Re: DGang [Dini,SSCANF,ZCMD] - by -=Dar[K]Lord=- - 28.07.2013, 15:16
Re: DGang [Dini,SSCANF,ZCMD] - by dEcooR - 28.07.2013, 15:24
Re: DGang [Dini,SSCANF,ZCMD] - by FiReMaNStone - 28.10.2013, 19:15
Re: DGang [Dini,SSCANF,ZCMD] - by gotwarzone - 28.10.2013, 21:41
Re: DGang [Dini,SSCANF,ZCMD] - by -Sam_hero- - 11.12.2013, 14:27
Re: DGang [Dini,SSCANF,ZCMD] - by maaz - 11.12.2013, 16:06
Re: DGang [Dini,SSCANF,ZCMD] - by [IND]Crazy - 22.03.2014, 14:20
Re: DGang [Dini,SSCANF,ZCMD] - by GShock - 25.03.2014, 18:03
Re: DGang [Dini,SSCANF,ZCMD] - by Guest4390857394857 - 25.03.2014, 18:10
Re: DGang [Dini,SSCANF,ZCMD] - by ROXYhunter - 09.08.2014, 20:50

Forum Jump:


Users browsing this thread: 1 Guest(s)