cache_insert_id return 0 :x
#6

It is a threaded query, so you've to mention the callback where it stores data of the query which was sent.
pawn Код:
mysql_tquery(connectionHandle, "INSERT INTO...", "OnVehicleInsert", "i", entry); //You don't have to fill up entry if not needed.
forward OnVehicleInsert(entry_id);
public OnVehicleInsert(entry_id)
{
    printf("insert id : %d", cache_insert_id(connectionHandle));
    return 1;
}
Reply


Messages In This Thread
cache_insert_id return 0 :x - by Baltimore - 31.12.2014, 02:38
Re: cache_insert_id return 0 :x - by M4D - 31.12.2014, 04:52
Respuesta: cache_insert_id return 0 :x - by Zume - 31.12.2014, 05:35
Re: cache_insert_id return 0 :x - by AdmBot - 31.12.2014, 06:06
Re : cache_insert_id return 0 :x - by Baltimore - 31.12.2014, 11:40
Re: cache_insert_id return 0 :x - by Lordzy - 31.12.2014, 11:44
Re : cache_insert_id return 0 :x - by Baltimore - 31.12.2014, 12:15
Re : cache_insert_id return 0 :x - by Baltimore - 31.12.2014, 20:58
Re : cache_insert_id return 0 :x - by Dark_Rider29 - 01.01.2015, 13:34
Re: cache_insert_id return 0 :x - by Sawalha - 01.01.2015, 13:54

Forum Jump:


Users browsing this thread: 1 Guest(s)