Speichern soll er in dem der Leader ihn setzt.
Und das Abfragen kommt durchs laden.
public OnFrakLoad()
{
new num_fields,num_rows;
cache_get_data(num_rows,num_fields,handle);
if(!num_rows)return 1;
for(new i = 0;i<num_rows;i++)
{
new id=getFreeFrakID();
//NAME
new tmp_name[35];
cache_get_field_content(i,"Name",tmp_name,handle);
strmid(fInfo[id][f_name],tmp_name,0,sizeof(tmp_name),sizeof(tmp_name));
//X
fInfo[id][f_spawnX] = cache_get_field_content_float(i,"spawnX",handle);
//Y
fInfo[id][f_spawnY] = cache_get_field_content_float(i,"spawnY",handle);
//Z
fInfo[id][f_spawnZ] = cache_get_field_content_float(i,"spawnZ",handle);
//R
fInfo[id][f_spawnR] = cache_get_field_content_float(i,"spawnR",handle);
//INT
fInfo[id][f_int] = cache_get_field_content_int(i,"Interior",handle);
//WORLD
fInfo[id][f_world] = cache_get_field_content_int(i,"World",handle);
//ID
fInfo[id][f_id] = cache_get_field_content_int(i,"id",handle);
//SKIN
fInfo[id][f_skin] = cache_get_field_content_int(i,"Skin",handle);
//RANKE
cache_get_field_content(i,"f_Rank1",tmp_name,handle);
strmid(fInfo[id][f_Rank1],tmp_name,0,sizeof(tmp_name),sizeof(tmp_name));
cache_get_field_content(i,"f_Rank2",tmp_name,handle);
strmid(fInfo[id][f_Rank2],tmp_name,0,sizeof(tmp_name),sizeof(tmp_name));
cache_get_field_content(i,"f_Rank3",tmp_name,handle);
strmid(fInfo[id][f_Rank3],tmp_name,0,sizeof(tmp_name),sizeof(tmp_name));
cache_get_field_content(i,"f_Rank4",tmp_name,handle);
strmid(fInfo[id][f_Rank4],tmp_name,0,sizeof(tmp_name),sizeof(tmp_name));
cache_get_field_content(i,"f_Rank5",tmp_name,handle);
strmid(fInfo[id][f_Rank5],tmp_name,0,sizeof(tmp_name),sizeof(tmp_name));
cache_get_field_content(i,"f_Rank6",tmp_name,handle);
strmid(fInfo[id][f_Rank6],tmp_name,0,sizeof(tmp_name),sizeof(tmp_name));
cache_get_field_content(i,"f_Rank7",tmp_name,handle);
strmid(fInfo[id][f_Rank7],tmp_name,0,sizeof(tmp_name),sizeof(tmp_name));
cache_get_field_content(i,"f_Rank8",tmp_name,handle);
strmid(fInfo[id][f_Rank8],tmp_name,0,sizeof(tmp_name),sizeof(tmp_name));
cache_get_field_content(i,"f_Rank9",tmp_name,handle);
strmid(fInfo[id][f_Rank9],tmp_name,0,sizeof(tmp_name),sizeof(tmp_name));
cache_get_field_content(i,"f_Rank10",tmp_name,handle);
strmid(fInfo[id][f_Rank10],tmp_name,0,sizeof(tmp_name),sizeof(tmp_name));
cache_get_field_content(i,"f_Rank11",tmp_name,handle);
strmid(fInfo[id][f_Rank11],tmp_name,0,sizeof(tmp_name),sizeof(tmp_name));
cache_get_field_content(i,"f_Rank12",tmp_name,handle);
strmid(fInfo[id][f_Rank12],tmp_name,0,sizeof(tmp_name),sizeof(tmp_name));
printf("Name: %s | ID: %i",fInfo[id][f_Rank9],fInfo[id][f_id]);
}
return 1;
}