Jump to content

[REZOLVAT] [BUG] tag clan - gm ruby by droom


MuskWannabe
 Share

Recommended Posts

Username: Musk
Problema întălnită: Nu se salveaza clan tag-ul dupa ce dau restart la server (nu mai apare nici in /clan - clan tag).
Detalii despre problemă: -
Ce ai încercat să faci înainte să postezi?: Momentan nimic.
Cod sursă (recomandat pastebin.com) : https://pastebin.com/6VfeX0TE (e codul de la /clan - clan tag), mai exact DIALOG_CLAN_TAG
Alte detalii: Sper sa fiu ajutat de cineva cu experienta, tin sa mentionez ca sunt incepator in mediul scriptingului.

Link to comment
Share on other sites

  • Replies 21
  • Created
  • Last Reply

Top Posters In This Topic

Adica asta?:

 

public LoadClanInfo()
{
    clanss = cache_num_rows();
    for(new i = 1; i <= clanss; i++)
    {
        new x = i - 1;
        ClanInfo[cClanID]                      = cache_get_field_content_int(x, "clanID");
        cache_get_field_content(x, "clanName", ClanInfo[cClanName], SQL, 130);
        cache_get_field_content(x, "clanColor", ClanInfo[cClanColor], SQL, 130);
        cache_get_field_content(x, "clanMOTD", ClanInfo[cClanMOTD], SQL, 130);
           cache_get_field_content(x, "clanTag", ClanInfo[cClanTag], SQL, 130);
        cache_get_field_content(x, "clanRankName7", ClanInfo[cClanRankName7], SQL, 130);
        cache_get_field_content(x, "clanRankName6", ClanInfo[cClanRankName6], SQL, 130);
        cache_get_field_content(x, "clanRankName5", ClanInfo[cClanRankName5], SQL, 130);
        cache_get_field_content(x, "clanRankName4", ClanInfo[cClanRankName4], SQL, 130);
        cache_get_field_content(x, "clanRankName3", ClanInfo[cClanRankName3], SQL, 130);
        cache_get_field_content(x, "clanRankName2", ClanInfo[cClanRankName2], SQL, 130);
        cache_get_field_content(x, "clanRankName1", ClanInfo[cClanRankName1], SQL, 130);
    }
    printf("[LOADING] %d clans loaded.", clanss);
}

Link to comment
Share on other sites

5 hours ago, alexC said:

ClanInfo [ x ] [ cClanID ] si tot asa mai departe

 

Am facut asa:

 

public LoadClanInfo()
{
    clanss = cache_num_rows();
    for(new i = 1; i <= clanss; i++)
    {
        new x = i - 1;
        ClanInfo[x][cClanID]                      = cache_get_field_content_int(x, "clanID");
        ClanInfo[x][cClanName]                  = cache_get_field_content_int(x, "clanName");
        ClanInfo[x][cClanColor]                  = cache_get_field_content_int(x, "clanColor");
        ClanInfo[x][cClanMOTD]                  = cache_get_field_content_int(x, "clanMOTD");
        ClanInfo[x][cClanTag]                      = cache_get_field_content_int(x, "clanTag");
        ClanInfo[x][cClanRankName7]             = cache_get_field_content_int(x, "clanRankName7");
        ClanInfo[x][cClanRankName6]             = cache_get_field_content_int(x, "clanRankName6");
        ClanInfo[x][cClanRankName5]             = cache_get_field_content_int(x, "clanRankName5");
        ClanInfo[x][cClanRankName4]             = cache_get_field_content_int(x, "clanRankName4");
        ClanInfo[x][cClanRankName3]             = cache_get_field_content_int(x, "clanRankName3");
        ClanInfo[x][cClanRankName2]             = cache_get_field_content_int(x, "clanRankName2");
        ClanInfo[x][cClanRankName1]             = cache_get_field_content_int(x, "clanRankName1");
    }
    printf("[LOADING] %d clans loaded.", clanss);
}

 

Revin cu edit cand o sa intru sa testez si iti spun daca a functionat.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Announcements


×
×
  • Create New...