Loop problem
#2

A note: when you send a threaded query (INSERT) and directly send another query which is based on the new row, it will not have effect.

pawn Код:
mysql_format(Database, DB_Query, sizeof(DB_Query),"INSERT INTO `RANKS` (`ID`) VALUES ('%d')",listitem+1);
mysql_tquery(Database, DB_Query, "OnRankInsert", "d", listitem+1);
pawn Код:
forward OnRankInsert(new_faction_rank);
public OnRankInsert(new_faction_rank)
{
    // the new row was insert successful, you can execute other queries that use "WHERE ID=%d" here
}
Reply


Messages In This Thread
Loop problem - by Nru - 16.06.2018, 07:16
Re: Loop problem - by Calisthenics - 16.06.2018, 08:20
Re: Loop problem - by Nru - 16.06.2018, 08:39
Re: Loop problem - by jlalt - 16.06.2018, 09:53
Re: Loop problem - by GaByM - 17.06.2018, 14:02

Forum Jump:


Users browsing this thread: 1 Guest(s)