Jump to content
  • 0

Am o dilema


Question

Salutare jucatori, am si eu o dilema foarte mare, mai exact cum pot face sa pot salva si in alt tabel in mysql?.Nu imi pot da seama de ce nu pot salva si in alt tabel, daca mi-ar putea da cineva sintaxa as fii recunoscator!.

Adica am tabelul de conturi, si vreau sa incep sa fac un tabel de vehicle cu datele dar nu salveaza.

PS:Foloseste MYSQL R39.

Edited by Serbaq
Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Poate oferind putin cod pe care l-ai incercat putea ajuta la indentificarea problemei

mysql_format(connectiom, query, sizeof(query), "UPDATE masini SET Ceva = %i WHERE Id = %i", ceva, sqlIdMasina);
mysql_tquery(conmnection, query);

Asta ar fi cel mai simplu exemplu

Link to post
Share on other sites
  • 0

Ma refeream la partea de masini, ai spus ca ai incercat doar ca nu se salveaza in tabelul respectiv ceea ce inseamna ca query respectiv e gresit. Ce trebuie sa faci e sa te asiguri ca query pe care il trimiti catre baza de date contine numele tabelului scris corect si coloanele pe care le ai si vrei sa fie salvate

Ce ai trimis are legatura cu conturile si presupun ca e functional

@Serbaq

Link to post
Share on other sites
  • 0

exact cum ai facut la onlogin acolo,

faci un

mysql_format(handle, query, "SELECT * FROM `masini_personale` WHERE `OwnerID` = '%d', PlayerInfo[playerid][pSQLID]);

mysql_tquery(handle, query, "functia de la vehicule", "d", playerid);

 

TIN SA MENTIONEZ CA 'masini_personale' IL FACI TU CA PE UN TABEL DE STOCARE A VEHICULELOR PERSONALE

SI OWNERID MODIFICI CU CE AI TU

Edited by hanako
greseli
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
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.

  • Recently Browsing   0 members

    No registered users viewing this page.

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