Jump to content
  • 0

Question

Posted (edited)

Nu se updateaza "KM" in baza de date MYSQL, de inserat se insereaza dar nu se updateaza, am facut repede o comanda de test...

CMD:test(playerid, params[])
{
    mysql_format(MySQLCon, query, sizeof query, "INSERT INTO vehicles (Owner, Model, Color1, Color2, Value) VALUES('%d', '%d', '%d', '%d', '%d');", pInfo[playerid][pID], dmodelid[playerid], 1, 1, dprice[playerid]);
    mysql_query(MySQLCon, query);
    new did = cache_insert_id();
    Veh[did][KM] = 5;
    orm_update(Veh[did][ORM_ID]);
    return 1;
}

MYSQL LOG:

EndCB();Log("12:05:53","orm_update",1,"invalid orm id (id: 0)",0);

 

Edited by norton.
....

8 answers to this question

Recommended Posts

  • 0
Posted (edited)

Altcineva? Vad ca tu nu prea intelegi..

 

:)) Am inteles perfect problema, da cum sa te ajutam daca tu ne dai comanda de kick si zici de ce nu merge spectator.Aceasi problema era si aici, ai dat variabilele gresite

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Guest
This topic is now closed to further replies.
  • 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.