Jump to content
  • 0

ORM Problem!


norton.

Question

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.
....
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

pai si cum ai vrea sa se salveze kilometri in baza de date daca tu nu ai in tabelul vehicles decat 

(Owner, Model, Color1, Color2, Value) 

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.