Jump to content

Question

Posted

Salut am si eu o problema..

Cu CM Clans Members..

stock GetClanMembers( clan[ ] )
{
	new CQuery[200], minfo[1512];
	//--------------------------------------------------------------------------
	format(CQuery, sizeof(CQuery), "SELECT * FROM `members` WHERE `clanname` = '%s' ORDER BY `isinclan` DESC LIMIT 15", clan);
	Result = db_query(Database, CQuery);
    //--------------------------------------------------------------------------
    for(new i; i < db_num_rows(Result); i++)
    {
        new string[30], string5[30], onoff[10], log[2];
        //----------------------------------------------------------------------
        db_get_field_assoc(Result, "playername", string, 30);
       	db_get_field_assoc(Result, "playerclanrank", string5, 30);
       	db_get_field_assoc(Result, "IsOnline", log, 2);
       	//----------------------------------------------------------------------
       	if(strcmp(log, "0") == 0)
       	{
       	    onoff = "Online";
       	}
       	else if(strcmp(log, "1") == 0)
       	{
       	    onoff = "Offline";
       	}
       	//----------------------------------------------------------------------
        format(minfo,sizeof(minfo),"%s\n{FF0000}%s {33FF33}(Rank: %s) {00BBF6}(%s)" ,minfo, string, string5, onoff);
        db_next_row(Result);
    }
	db_free_result(Result);
	return minfo;
}

Deci vreau sa nu mai arate (Online) (Offline)

Sa nu mai arate ca are bug :-??

Si cand dau /cm sa vad cine este in clan .. sai arate

Cand nui in clan sa nui arate..

Cand nui pe server sa nul arate si tot asa..

Aveti ide cum pot sa rezolv asta:-??

8 answers to this question

Recommended Posts

Posted

Pai sincer eu nu am inteles ce vrei sa spui,prima data ai zis ca vrei sa ai aceasta comanda cu /cm membrii Online si cei offline din respectiva mafie,atat am inteles eu,fi mai explicit ce vrei sa faci...Si care este problema.

 

 

Posted

Fii mai explicit.Descrie mai bine ceea ce ai nevoie ;)

"Maxim respect pentru orice proiect

Nimeni nu poate sa va scape cand va execut direct"

Posted

[pawn]stock GetClanMembers( clan[ ] )

{

    new CQuery[200], minfo[1512];

    //--------------------------------------------------------------------------

    format(CQuery, sizeof(CQuery), "SELECT * FROM `members` WHERE `clanname` = '%s' ORDER BY `isinclan` DESC LIMIT 15", clan);

    Result = db_query(Database, CQuery);

    //--------------------------------------------------------------------------

    for(new i; i < db_num_rows(Result); i++)

    {

        new string[30], string5[30], onoff[10], log[2];

        //----------------------------------------------------------------------

        db_get_field_assoc(Result, "playername", string, 30);

      db_get_field_assoc(Result, "playerclanrank", string5, 30);

      db_get_field_assoc(Result, "IsOnline", log, 2);

      //----------------------------------------------------------------------

      if(strcmp(log, "0") == 0)

      {

          format(minfo,sizeof(minfo),"%s\n{FF0000}%s {33FF33}(Rank: %s)" ,minfo, string, string5);

db_next_row(Result);

      }

    }

    db_free_result(Result);

    return minfo;

}[/pawn]

Netestat.

Posted

[pawn]stock GetClanMembers( clan[ ] )

{

    new CQuery[200], minfo[1512];

    //--------------------------------------------------------------------------

    format(CQuery, sizeof(CQuery), "SELECT * FROM `members` WHERE `clanname` = '%s' ORDER BY `isinclan` DESC LIMIT 15", clan);

    Result = db_query(Database, CQuery);

    //--------------------------------------------------------------------------

    for(new i; i < db_num_rows(Result); i++)

    {

        new string[30], string5[30], onoff[10], log[2];

        //----------------------------------------------------------------------

        db_get_field_assoc(Result, "playername", string, 30);

      db_get_field_assoc(Result, "playerclanrank", string5, 30);

      db_get_field_assoc(Result, "IsOnline", log, 2);

      //----------------------------------------------------------------------

      if(strcmp(log, "0") == 0)

      {

          format(minfo,sizeof(minfo),"%s\n{FF0000}%s {33FF33}(Rank: %s)" ,minfo, string, string5);

db_next_row(Result);

      }

    }

    db_free_result(Result);

    return minfo;

}[/pawn]

Netestat.

Mersi merge..

Si pentru cei lanti sunteti prafii..

Doar el a inteles ce am vrut sa spun..

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.