Problem ORM!
#1

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;
}
Reply


Messages In This Thread
Problem ORM! - by norton2 - 20.09.2015, 16:44
Re: Problem ORM! - by norton2 - 20.09.2015, 17:04
Re: Problem ORM! - by norton2 - 20.09.2015, 18:23
Re: Problem ORM! - by norton2 - 21.09.2015, 17:01
Re: Problem ORM! - by rappy93 - 21.09.2015, 18:48
Re: Problem ORM! - by norton2 - 22.09.2015, 13:25

Forum Jump:


Users browsing this thread: 1 Guest(s)