strcat(query,"ALTER TABLE `"#SQLTAG"_account_inventar` ADD COLUMN (");
for(new i=0;i<MAX_ARCHIVMENTS;i++)
{
strcat(query,",");
format(query,sizeof(query),"%s`pArchs%i` int(2) NOT NULL",query,i);
}
strcat(query,")");
mysql_function_query(MySqlConnection,query,false,"","");
strdel(query,0,sizeof(query));
Meinste so beim 2. Teil ?
Oder lieber so ?
strcat(query,"ALTER TABLE `"#SQLTAG"_account_inventar` ADD COLUMN (");
for(new i=0;i<MAX_ARCHIVMENTS;i++)
{
if(i > 0) strcat(query,",");
format(query,sizeof(query),"%s`pArchs%i` int(2) NOT NULL",query,i);
}
strcat(query,")");
mysql_function_query(MySqlConnection,query,false,"","");
strdel(query,0,sizeof(query));