Jump to content
  • 0

Problema /members


SweeT.

Question

Problema intalnita (descriere):Vreau sa mut dialog de la /members pe DIALOG_STYLE_TABLIST_HEADERS dar nu iese, nu arata cum trebuie
Ero(area / rile) / warning-(ul / urile): - - - -
Liniile de cod / sursa / script-ul(obligatoriu):

CMD:members(playerid, params[])
{
    if(PlayerInfo[playerid][pMember] >= 1 && PlayerInfo[playerid][pRank] >= 6)
    {
        new aim[2400], query[300], test[300], test1[300], test2[300], test3[300], result[300];
        format(query, sizeof(query), "SELECT * FROM `users` WHERE `users`.`Member` = '%d' ORDER BY `users`.`Rank` DESC LIMIT 50", PlayerInfo[playerid][pMember]);
        new Cache: membresult = mysql_query(SQL, query);
        for(new i, j = cache_get_row_count (); i != j; ++i)
        {
            cache_get_field_content(i, "name", result); format(test, 300, result);
            cache_get_field_content(i, "Rank", result); format(test1, 300, result);
            cache_get_field_content(i, "lastOn", result); format(test2, 300, result);
            cache_get_field_content(i, "FWarn", result); format(test3, 300, result);
            new id = GetPlayerID(test);
            if(id != INVALID_PLAYER_ID)
            {
                format(aim, sizeof(aim), "%s{7FDD4C}%s - rank %s - %s FW\n", aim, test, test1, test3);
            }
            else
            {
                format(aim, sizeof(aim), "%s{E9383F}%s - rank - %s - %s\n", aim, test, test1, test3, test2);
            }
        }
        cache_delete(membresult);
        ShowPlayerDialog(playerid, DIALOG_MEMBERS, DIALOG_STYLE_TABLIST_HEADERS, "Members","Name\t Rank\t FactionWarns\t LastOnline",aim,"Ok","Exit");
    }
    return 1;
}


Imagini / Video (optional):http://imgur.com/o02eSjQ
Ati incercat sa rezolvati singur?:Da, nu reusesc

Un ex cum trebuai sa fie 

http://imgur.com/kX74pgz

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

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.