no.
you should to format inside loop only tables one by one.
%s smallint(1), %s smallint(1), ...
PHP Code:
new szText[2048];
new szMotdHeader[] = "CREATE TABLE IF NOT EXISTS expmod(";
new iLen=0;
for(new i=0;i<9;i++)
iLen += formatex( szText[iLen], charsmax(szText)-iLen, "%s smallint(1)%s", tablenames[i],(i==8)?"":",");
iLen+=formatex(szText[iLen], charsmax(szText)-iLen, ")");
Queries = SQL_PrepareQuery(SqlConnection,"%s",szText);
and also:
Queries = SQL_PrepareQuery(SqlConnection,"%s",szText);
Queries = SQL_PrepareQuery(SqlConnection, szText);
__________________