SA-MP Forums Archive
Problem ORM! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem ORM! (/showthread.php?tid=589570)



Problem ORM! - norton2 - 20.09.2015

Not update "KM" in DataBase MYSQL! Use MYSQL R39-3 + ORM.
Код HTML:
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;
}



Re: Problem ORM! - norton2 - 20.09.2015

MYSQL LOG:
Код HTML:
EndCB();Log("12:05:53","orm_update",1,"invalid orm id (id: 0)",0);



Re: Problem ORM! - norton2 - 20.09.2015

Anyone?


Re: Problem ORM! - norton2 - 21.09.2015

BUMB!


Re: Problem ORM! - rappy93 - 21.09.2015

Try with this code:

PHP код:
CMD:test(playeridparams[])
{
    
mysql_format(MySQLConquerysizeof(query), "INSERT INTO `vehicles` (Owner, Model, Color1, Color2, Value) VALUES ('%d', '%d', '%d', '%d', '%d');"pInfo[playerid][pID], dmodelid[playerid], 11dprice[playerid]);
    
mysql_query(MySQLConquery);
    new 
did cache_insert_id();
    
Veh[did][KM] = 5;
    
orm_update(Veh[did][ORM_ID]);
    return 
1;




Re: Problem ORM! - norton2 - 22.09.2015

Not work..