[Ajuda] STRCMP
#6

assim foi normalmente

mais qual a diferenзa disso

pawn Code:
// metodo 1 funcionou
   
    for(new x; x < MAX_CLANS; x ++)
    {

    format( ClanFile , sizeof( ClanFile ), "Clans/%d.ini", x);

    if(DOF2_FileExists( ClanFile )) if( strcmp ( text , PlayerClan[x][NomeClan] , true ) == 0 ) return SendClientMessage(playerid, -1, "Jб existe esse clan");

    }

    // metodo 2 funcionou tbm
    for(new x; x < MAX_CLANS; x ++)
    {

    format( ClanFile , sizeof( ClanFile ), "Clans/%d.ini", x);

    if(DOF2_FileExists( ClanFile )) if( strcmp ( text , DOF2_GetString(ClanFile,"NomeDoClan") , true ) == 0 ) return SendClientMessage(playerid, -1, "Jб existe esse clan");

    }
algum desses ganha velocidade?
Reply


Messages In This Thread
STRCMP - by ERICcartmanN - 16.04.2016, 17:44
Re: STRCMP - by ERICcartmanN - 17.04.2016, 18:56
Re: STRCMP - by ZEDD666 - 17.04.2016, 19:17
Re: STRCMP - by ERICcartmanN - 17.04.2016, 19:45
Re: STRCMP - by ZEDD666 - 17.04.2016, 19:47
Re: STRCMP - by ERICcartmanN - 17.04.2016, 20:45

Forum Jump:


Users browsing this thread: 1 Guest(s)