Jump to content
  • 0

Problema pawno #2


MihaiArabu

Question

11 answers to this question

Recommended Posts

  • 0
Acum 1 oră, MihaiAdv a spus:

Imi arata ca nu le gaseste definite: 

undefined symbol "mysql_store_result"
undefined symbol "mysql_fetch_row_format"

Poza: https://imgur.com/a/yNDtT 

Am incercat sa dau upgrade la R6-R7 dar dupa imi da iar errori... 

Acele functii nu sunt dispobibile pt acea versiune de mysql. Ii faci upgrade sau downdrage la versiunea de mysql(.dll si .inc) sau folosesti functiile aferente versiuni care fac acelasi lucru ca cele de mai sus.

Link to comment
Share on other sites

  • 0

Uite, iti dau codul sursa:

stock LoadFactions()
{
    new query[400];
    for(new id; id < MAX_FACTIONS; id++)
    {
        format(query, sizeof(query), "SELECT * FROM Factions WHERE ID = %d", id);
        mysql_tquery(SQL, query);
        mysql_store_result(); - aici este problema #1
        if(cache_num_rows())
        if(mysql_fetch_row_format(query,"|")) - aici este problema #2
        {
            sscanf(query, "p<|>e<is[64]ds[32]s[32]s[32]s[32]s[32]>",Factions[id]);
            Total_Factions_Created++;
        }

    }
    printf("> %d factions have been loaded from the database.", Total_Factions_Created);
    return 1;
}

 

Link to comment
Share on other sites

  • 0
Acum 5 minute, MihaiAdv a spus:

Uite, iti dau codul sursa:

stock LoadFactions()
{
    new query[400];
    for(new id; id < MAX_FACTIONS; id++)
    {
        format(query, sizeof(query), "SELECT * FROM Factions WHERE ID = %d", id);
        mysql_tquery(SQL, query);
        mysql_store_result(); - aici este problema #1
        if(cache_num_rows())
        if(mysql_fetch_row_format(query,"|")) - aici este problema #2
        {
            sscanf(query, "p<|>e<is[64]ds[32]s[32]s[32]s[32]s[32]>",Factions[id]);
            Total_Factions_Created++;
        }

    }
    printf("> %d factions have been loaded from the database.", Total_Factions_Created);
    return 1;
}

 

versiunea de mysql este < de R33. nici tu  u stii ce versiune folosesti. Pt ca de la 33 in sus nu mai exista acele functii

Link to comment
Share on other sites

  • 0
Acum 6 minute, MihaiAdv a spus:

Trebuie redacut sistemul de loading sa fie compatibil cu acea versiine de mysql. Sistemul este facut pe o versiune mai mica de r33. Uitate de exemplu in gm bigzone dau burned cum sunt facute, nu o sa stau acum sa fac un sistem de loading

Edited by valivaly96
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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