19.07.2014, 10:12
(
Последний раз редактировалось caoraivoso3; 19.07.2014 в 13:24.
)
the setkey function sets the variable from orm to the table?
like i use the cache insert id to get the autoincriment id then i use the setkey to set the key to the table and use it on the next query to save other variables. it is right?
edit:
I think i fix the last problem I just save the thing iwth the function but i still have a problem
I get this error
[ERROR] CMySQLQuery::Execute[OnAccountCreate] - (error #1062) Duplicate entry '33' for key 'PRIMARY'.
I dont know why this is giving me errors in this function i have
g_PlayerInfo[playerid][pSQLid] = cache_insert_id();
and this is called in this other function
orm_insert(g_PlayerInfo[playerid][ORM_ID], "OnAccountCreate", "d", playerid);.
any idea?
like i use the cache insert id to get the autoincriment id then i use the setkey to set the key to the table and use it on the next query to save other variables. it is right?
edit:
I think i fix the last problem I just save the thing iwth the function but i still have a problem
I get this error
[ERROR] CMySQLQuery::Execute[OnAccountCreate] - (error #1062) Duplicate entry '33' for key 'PRIMARY'.
I dont know why this is giving me errors in this function i have
g_PlayerInfo[playerid][pSQLid] = cache_insert_id();
and this is called in this other function
orm_insert(g_PlayerInfo[playerid][ORM_ID], "OnAccountCreate", "d", playerid);.
any idea?