Jump to content

[REZOLVAT] Probleme Dealership


NoManPv
 Share

Recommended Posts

  • Username :NoManPv
  • Problema întâlnită:apare owner dealership pe masina numai la firma gazduire la celante firme de host nu apare pe localhost nu apare
  • Detalii despre problemă:cand cumpar o masina dau relog imi apare owner dealership numai pe gazduire face
  • Ce ai încercat să faci înainte să postezi?:daa
  • Cod sursa (recomandat pastebin.com) : Nu stiu cred ca buymodel
  • Alte detalii :Nimic
Link to comment
Share on other sites

si cand cumpar masina primesti erroare in server.log cu asta 

[23:23:54] NoManPv si-a cumparat un Perrenial[2].
[23:23:54] ====================================================================
[23:23:54] Error ID: 1064, Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Virtual='0'  WHERE ID=2' at line 1
[23:23:54] Callback: 
[23:23:54] gQuery: UPDATE cars SET Model='404', Locationx='281.817505', Locationy='-1531.890747', Locationz='24.593800', Angle='90.360001', ColorOne='1', ColorTwo='1', Owner='NoManPv', Value='1500000', License='NewCar', Userid='1', Virtual='0'  WHERE ID=2
[23:23:54] ====================================================================

Link to comment
Share on other sites

e de aici dar nu stiu ce

stock saveCar(idd) {
    if(idd == 0) return 1;
    new query[699];
    mysql_format(SQL, query, sizeof(query), 
        "UPDATE cars SET Model='%d', Locationx='%f', Locationy='%f', Locationz='%f', Angle='%f', ColorOne='%d', ColorTwo='%d', Owner='%s', Value='%d', License='%s', Userid='%d', Virtual='%d', WHERE ID=%d",
    CarInfo[idd][cModel], CarInfo[idd][cLocationx], CarInfo[idd][cLocationy], CarInfo[idd][cLocationz], CarInfo[idd][cAngle], CarInfo[idd][cColorOne], CarInfo[idd][cColorTwo], CarInfo[idd][cOwner], CarInfo[idd][cValue],
    CarInfo[idd][cLicense], CarInfo[idd][Userid],CarInfo[idd][cVirtual],idd);
    mysql_tquery(SQL, query, "", "");
    return 1;
}

Link to comment
Share on other sites

=]]]]] mai mai mai... a venit expertu sa cere ajutor =))))) 

Parca erai prea bun pt a cere ajutor ma =)))

Imi explici si mie ce trb are hostul cu bugurile gm-ului tau? =)))) din cate vad nu se salveaza bn datele in baza de date si de asta dupa relog apare asa

 

 

9KTP2ey.png

 

 

 

KuMvnHk.png

Sunt de moda veche | Inca mai cred in respect ????

Link to comment
Share on other sites

Just now, Dani3l. said:

=]]]]] mai mai mai... a venit expertu sa cere ajutor =))))) 

Parca erai prea bun pt a cere ajutor ma =)))

Imi explici si mie ce trb are hostul cu bugurile gm-ului tau? =)))) din cate vad nu se salveaza bn datele in baza de date si de asta dupa relog apare asa

pe localhost merge pe zeroping merge pe toate merge numai pe gazduire face asa

Link to comment
Share on other sites

Acum 55 minute, NoManPv a spus:

pe localhost merge pe zeroping merge pe toate merge numai pe gazduire face asa

Nu prea cred ca are treaba hostul, posibil sa fie si de la gazduirejocuri dar nu prea cred.. oricum probabil problema e ca nu se salveaza in baza de date

 

 

9KTP2ey.png

 

 

 

KuMvnHk.png

Sunt de moda veche | Inca mai cred in respect ????

Link to comment
Share on other sites

12 hours ago, Dani3l. said:

=]]]]] mai mai mai... a venit expertu sa cere ajutor =))))) 

Parca erai prea bun pt a cere ajutor ma =)))

Imi explici si mie ce trb are hostul cu bugurile gm-ului tau? =)))) din cate vad nu se salveaza bn datele in baza de date si de asta dupa relog apare asa

 

Link to comment
Share on other sites

  • Administrator

"Error ID: 1064, Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Virtual='0'  WHERE ID=2' at line 1"

 

"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near"

Daca citesti putin, iti dai seama singur.

 

Poftim:

stock saveCar(idd) 
{
    if(idd == 0) return 1;

    new query[256];

    mysql_format(SQL, query, sizeof(query),  "UPDATE `cars` SET `Model` = '%d', `Locationx` = '%f', `Locationy` = '%f', `Locationz` = '%f', `Angle` = '%f', `ColorOne` = '%d', `ColorTwo` = '%d', `Owner` = '%s', `Value` = '%d', `License` = '%s', `Userid` = '%d', `Virtual` = '%d' WHERE `ID` = '%d'",
    CarInfo[idd][cModel], CarInfo[idd][cLocationx], CarInfo[idd][cLocationy], CarInfo[idd][cLocationz], CarInfo[idd][cAngle], CarInfo[idd][cColorOne], CarInfo[idd][cColorTwo], CarInfo[idd][cOwner], CarInfo[idd][cValue],
    CarInfo[idd][cLicense], CarInfo[idd][Userid],CarInfo[idd][cVirtual],idd);
    mysql_tquery(SQL, query, "", "");

    return 1;
}

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...