Jump to content
  • 0

Problema mysql


SilviuZLD

Question

Salut! Dupa ce termin tutorialul vreau sa se updateze in mysql variabila Tutorial din 0 in 1. Problema este ca nu se intampla asta
           

Citat

PlayerInfo[playerid][pTutorial] = 1;

mysql_format(SQL, gQuery, sizeof(gQuery), "UPDATE `users` SET `Tutorial`='1', WHERE `ID`='%d'", GetName(playerid), inputtext);

mysql_tquery(SQL, gQuery);

Voi ce spuneti? Unde am gresit?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Pai mysql_formatu tau asteapta o variabila de tip integer(numar) ca sa o foloseasca pentru acel id

Tu ii dai si GetPlayerName care e string si inputtext care nu cred ca ar avea ce cauta acolo

In loc de cele 2 pune PlayerInfo[playerid][pSQLID] sau cum e variabila la tine in gm

 

Acum sfatul meu e sa nu mai ignori erorile/warnings date de compilator si verifica serverlog si mysqlog pentru erori si probleme. Ma indoiesc de faptul ca nici unul dintre aceste elemente nu s-a plans

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.