Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted

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?

1 answer to this question

Recommended Posts

  • 0
Posted

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.