18.01.2013, 13:20
Im no expert in mysql, so ill ask here and maybe some of you guys know what to do
I have code in OnGameModeInit to create tables in the database if they dont exist.
I also want to insert 10 rows of information to, its actually just 1 field of information that is important to be created, the ID field.
I tried a x10 loop with:
What i didnt think about is that it will create 10 new rows every time OnGameModeInit is called.
So the question is, how do i make it detect if the 10 rows are already in the DB?
I have code in OnGameModeInit to create tables in the database if they dont exist.
pawn Код:
CREATE TABLE IF NOT EXISTS ....
I tried a x10 loop with:
pawn Код:
INSERT INTO .....
So the question is, how do i make it detect if the 10 rows are already in the DB?