Moin ich habe ein Problem.. ich hatte heute mein Mysql System umgeschrieben, und bekomme folgendes.. ka wo der Fehler liegt... am string?
Code
error 047: array sizes do not match, or destination array is too small
error 047: array sizes do not match, or destination array is too small
error 047: array sizes do not match, or destination array is too small
error 047: array sizes do not match, or destination array is too small
error 047: array sizes do not match, or destination array is too small
error 047: array sizes do not match, or destination array is too small
error 047: array sizes do not match, or destination array is too small
error 001: expected token: ";", but found "-identifier-"
Code
forward LoadMysqlBoxer();
public LoadMysqlBoxer()
{
new rows, fields,temp[256];
cache_get_data(rows, fields);
if(rows)
{
cache_get_field_content(0,"wins",temp), Titel[TitelWins] = strval(temp);
cache_get_field_content(0,"champ",temp), Titel[TitelName] = temp;
cache_get_field_content(0,"loses",temp), Titel[TitelLoses] = strval(temp);
}
}
public LoadRangNames()
{
new query[256];
for(new idx=1; idx <= sizeof(Rangname); idx++)
{
format(query, sizeof(query), "SELECT * FROM gangrangs WHERE fID=%i",idx);
mysql_function_query(mysqlcon,query,true,"LoadMysqlRangNames","i",idx);
}
print("Rangnamen geladen!");
return 1;
}
forward LoadMysqlRangNames(idx);
public LoadMysqlRangNames(idx)
{
new rows, fields, temp[256];
cache_get_data(rows, fields);
if(rows)
{
cache_get_field_content(0,"rangname1",temp), Rangname[idx][Rang1] = temp;
cache_get_field_content(0,"rangname2",temp), Rangname[idx][Rang2] = temp;
cache_get_field_content(0,"rangname3",temp), Rangname[idx][Rang3] = temp;
cache_get_field_content(0,"rangname4",temp), Rangname[idx][Rang4] = temp;
cache_get_field_content(0,"rangname5",temp), Rangname[idx][Rang5] = temp;
cache_get_field_content(0,"rangname6",temp), Rangname[idx][Rang6] = temp;
cache_get_field_content(0,"rangname7",temp), Rangname[idx][Rang7] = temp;
cache_get_field_content(0,"rangname8",temp), Rangname[idx][Rang8] = temp;
cache_get_field_content(0,"rangname9",temp), Rangname[idx][Rang9] = temp;
cache_get_field_content(0,"rangname10",temp), Rangname[idx][Rang10] = temp;
cache_get_field_content(0,"rangname11",temp), Rangname[idx][Rang11] = temp;
cache_get_field_content(0,"rangname12",temp), Rangname[idx][Rang12] = temp;
}
}
Alles anzeigen