SA-MP Forums Archive
cache_insert_id - 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: cache_insert_id (/showthread.php?tid=458979)



cache_insert_id - speed258 - 19.08.2013

why i always get from cache_insert_id 0 my code:
Код:
mysql_format(data, querys, sizeof(querys), "INSERT INTO `server` (ON, ONT) VALUES ('%s','%s')", date, date1);
	mysql_function_query(data, querys, false, "SendQuery", "");
	printf("Server started %d times", cache_insert_id());
so whats wrong in database everything is saving fine but returns always 0 so any ideas?


Re: cache_insert_id - speed258 - 19.08.2013

Thanks, I fixed thread can be locked.