Jump to content

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


MuskWannabe
 Share

Recommended Posts

  • Replies 21
  • Created
  • Last Reply

Top Posters In This Topic

La 12.05.2019 la 9:39, MuskWannabe a spus:

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);
}

le lasi asa doar ca adaugi dupa ClanInfo, [ x ].

De ex:

cache_get_field_content(x, "clanMOTD", ClanInfo [ x ] [cClanMOTD], SQL, 130);

cache_get_field_content(x, "clanName", ClanInfo [ x ] [cClanName], SQL, 130);

bla bla bla, nu modifici nimic, doar adaugi.

Link to comment
Share on other sites

2 hours ago, alexC said:

le lasi asa doar ca adaugi dupa ClanInfo, [ x ].

De ex:

cache_get_field_content(x, "clanMOTD", ClanInfo [ x ] [cClanMOTD], SQL, 130);

cache_get_field_content(x, "clanName", ClanInfo [ x ] [cClanName], SQL, 130);

bla bla bla, nu modifici nimic, doar adaugi.

 

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");
        cache_get_field_content(x, "clanName", ClanInfo[x][cClanName], SQL, 130);
        cache_get_field_content(x, "clanColor", ClanInfo[x][cClanColor], SQL, 130);
        cache_get_field_content(x, "clanMOTD", ClanInfo[x][cClanMOTD], SQL, 130);
        cache_get_field_content(x, "clanTag", ClanInfo[x][cClanTag], SQL, 130);
        cache_get_field_content(x, "clanRankName7", ClanInfo[x][cClanRankName7], SQL, 130);
        cache_get_field_content(x, "clanRankName6", ClanInfo[x][cClanRankName6], SQL, 130);
        cache_get_field_content(x, "clanRankName5", ClanInfo[x][cClanRankName5], SQL, 130);
        cache_get_field_content(x, "clanRankName4", ClanInfo[x][cClanRankName4], SQL, 130);
        cache_get_field_content(x, "clanRankName3", ClanInfo[x][cClanRankName3], SQL, 130);
        cache_get_field_content(x, "clanRankName2", ClanInfo[x][cClanRankName2], SQL, 130);
        cache_get_field_content(x, "clanRankName1", ClanInfo[x][cClanRankName1], SQL, 130);
    }
    printf("[LOADING] %d clans loaded.", clanss);
}

 

tot nu se salveaza si acum am observat ca nu se salveaza nimic, deci inseamna ca tot de aici e problema si ca nu se incarca clanurile cum trebuie

Link to comment
Share on other sites

Incearca sa dai un 'empy' in baza de date la clans. 

Banuiesc ca folosesti bugzone, daca nici prima varianta nu functioneaza, incearca sa stergi 'clans' din baza si sa urci altul de pe alta baza bugzone.

88kEXNl.gif1jArj93.jpg

Link to comment
Share on other sites

31 minutes ago, SkillZAdV said:

Incearca sa dai un 'empy' in baza de date la clans. 

Banuiesc ca folosesti bugzone, daca nici prima varianta nu functioneaza, incearca sa stergi 'clans' din baza si sa urci altul de pe alta baza bugzone.

 

am incercat ambele variante, degeaba, la fe se intampla

Link to comment
Share on other sites

On 5/15/2019 at 12:58 AM, AlexxAdv said:

Rezolvarea e foarte usoara, te duci in baza de date(phpmyadmin) selectezi tabelul clans si dai empty(golire), restart la sv si totul va merge ok.

 

Am facut asta, degeaba, tot asa imi face, nu se salveaza nimic, dar dupa restart pot scrie pe /c insa nu se salveaza tagul, rank name-urile, culoarea, numele, etc

Link to comment
Share on other sites

  • Manager
Acum 1 oră, MuskOfficial a spus:

 

Am facut asta, degeaba, tot asa imi face, nu se salveaza nimic, dar dupa restart pot scrie pe /c insa nu se salveaza tagul, rank name-urile, culoarea, numele, etc

 

La 14.05.2019 la 1:43, L0K3D a spus:

Sterge fisierul mysql_logs.txt si porneste iar serverul, daca primesti erori posteaza-le pe pastebin.com si lasa-ne un link.

 

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...