Jump to content
Ionut112

Problema MYSQL

Recommended Posts

Problema intalnita (descriere): Primesc aceasta eroare in "mysql_log" dupa ce serverul porneste
Ero(area / rile) / warning-(ul / urile): 

Spoiler

[ERROR] "mysql_tquery" - invalid connection handle (id: 0)

Liniile de cod / sursa / script-ul(obligatoriu):  

Spoiler

stock LoadRace(playerid = -1, rName[])
{
    mysql_format(DB_Connect, eQuery, 128, "SELECT * FROM `Races` WHERE `RName` = '%e'", rName);

    if(playerid != -1)
        mysql_function_query(DB_Connect, eQuery, true, "LoadRaceDetails", "is", playerid, rName);
    else
        mysql_function_query(DB_Connect, eQuery, true, "LoadRaceDetails", "is", -1, rName);

    return (1);
}

stock LoadRaceNames( )
    mysql_function_query( DB_Connect, "SELECT `ID`,`RName` FROM `Races`", true, "call_LoadRaceNames", "" );

Ati incercat sa rezolvati singur?: Da, de ieri tot incerc.

Daca este nevoie de mai multe linii o sa le las in posturi. Tin sa specific ca acest sistem de race este luat de pe alt gamemode.

Share this post


Link to post
Share on other sites

Inccearca sa inlocusesti cele 3 functi mysql_function_query cu  mysql_tquery

Edited by Nigga
  • Thanks 1

Share this post


Link to post
Share on other sites

Daca fac asta imi da asa: error 035: argument type mismatch (argument 3) la compilare

Edited by Ionut112

Share this post


Link to post
Share on other sites
Acum 6 ore, Ionut112 a spus:

Problema intalnita (descriere): Primesc aceasta eroare in "mysql_log" dupa ce serverul porneste
Ero(area / rile) / warning-(ul / urile): 

  Reafișează conținuturi ascunse

[ERROR] "mysql_tquery" - invalid connection handle (id: 0)

Liniile de cod / sursa / script-ul(obligatoriu):  

  Ascunde conținuturi

stock LoadRace(playerid = -1, rName[])
{
    mysql_format(DB_Connect, eQuery, 128, "SELECT * FROM `Races` WHERE `RName` = '%e'", rName);

    if(playerid != -1)
        mysql_function_query(DB_Connect, eQuery, true, "LoadRaceDetails", "is", playerid, rName);
    else
        mysql_function_query(DB_Connect, eQuery, true, "LoadRaceDetails", "is", -1, rName);

    return (1);
}

stock LoadRaceNames( )
    mysql_function_query( DB_Connect, "SELECT `ID`,`RName` FROM `Races`", true, "call_LoadRaceNames", "" );

Ati incercat sa rezolvati singur?: Da, de ieri tot incerc.

Daca este nevoie de mai multe linii o sa le las in posturi. Tin sa specific ca acest sistem de race este luat de pe alt gamemode.

mysql_pquery( DB_Connect, eQuery, "LoadRaceDetails", "is", playerid, rName);

Asta ar fi un exemplu, poti face la toate la fel. Sper ca te-am ajutat.

  • Thanks 1

Share this post


Link to post
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
Reply to this topic...

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


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.