22.10.2018, 15:20
I recommend using threaded queries, you weren't storing the query cache result, therefore it returned 0 when you called cache_insert_id();
PHP код:
mysql_tquery(Database, query, "query_insertIntoClans", "d..", playerid);
forward query_insertIntoClans(playerid, ..);
public query_insertIntoClans(playerid, ..) {
UserStats[playerid][Clan] = cache_insert_id();
return 1;
}