Automatically adding tables/fields in MySQL database.
#5

Quote:
Originally Posted by Grim_
Посмотреть сообщение
There's nothing wrong with the SQL syntax inside the file, so something is screwing up when loading the data or calling it to the query. Please show that code.
Sure thing:

pawn Код:
stock CreateSQLTables()
{
    new szQuery[2000];
    new File:sqltables = fopen("sql.txt", io_read);
    fread(sqltables, szQuery);
    fclose(sqltables);
   
    mysql_query(szQuery);
}
That function is called under OnGameModeInit().
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)