Du solltest wirklich mehr Eigeninitiative zeigen und wenigstens mal einen Blick in das Wiki schauen, dort sind die Funktionen jeweils mit einem Beispiel erklärt, das kann man eigentlich dann nicht mehr falsch machen.
Wenn ich dir das alles vorschreibe lernst du gar nichts dabei.
forward OnFraktionLaden();
public OnFraktionLaden()
{
new rows, fields;
cache_get_data(rows, fields);
for(new i = 0; i < rows; i++)
{
fInfo[i][f_id] = cache_get_field_content_int(i,"fid",Handle);
cache_get_field_content(i,"fname", fInfo[i][f_name],Handle,32);
//Cords
fInfo[i][f_x] = cache_get_field_content_float(i,"f_x", Handle);
fInfo[i][f_interior] = cache_get_field_content_int(i,"f_interoir",Handle);
fInfo[i][f_world] = cache_get_field_content_int(i,"f_world", Handle);
fInfo[i][f_color] = cache_get_field_content_int(i,"f_color", Handle);
fInfo[i][f_kasse] = cache_get_field_content_int(i,"f_kasse", Handle);
//Rangnamen
cache_get_field_content(i,"f_rang1", fInfo[i][f_rang1],Handle);
cache_get_field_content(i,"f_rang2", fInfo[i][f_rang2],Handle);
cache_get_field_content(i,"f_rang3", fInfo[i][f_rang3],Handle);
cache_get_field_content(i,"f_rang4", fInfo[i][f_rang4],Handle);
cache_get_field_content(i,"f_rang5", fInfo[i][f_rang5],Handle);
cache_get_field_content(i,"f_rang6", fInfo[i][f_rang6],Handle);
printf("Fraktionen geladen");
}
return 1;
}