public LoadFraktionRangs()
{
print("LoadFraktionRangs - wurde aufgerufen");
new num_fields,num_rows;
cache_get_data(num_rows,num_fields);
if(!num_rows)return print("LoadFraktionRangs - num_rows = 0");
for(new i, id; i < num_rows; i++)
{
id++;
cache_get_field_content(i, "rangname1", fInfo[id][frang1], dbhandle, MAX_PLAYER_NAME);
cache_get_field_content(i, "rangname2", fInfo[id][frang2], dbhandle, MAX_PLAYER_NAME);
cache_get_field_content(i, "rangname3", fInfo[id][frang3], dbhandle, MAX_PLAYER_NAME);
cache_get_field_content(i, "rangname4", fInfo[id][frang4], dbhandle, MAX_PLAYER_NAME);
cache_get_field_content(i, "rangname5", fInfo[id][frang5], dbhandle, MAX_PLAYER_NAME);
cache_get_field_content(i, "rangname6", fInfo[id][frang6], dbhandle, MAX_PLAYER_NAME);
printf("Step 1: LoadFraktionRangs - rangname1: %s",fInfo[id][frang1]);
printf("Step 2: LoadFraktionRangs - rangname2: %s",fInfo[id][frang2]);
printf("Step 3: LoadFraktionRangs - rangname3: %s",fInfo[id][frang3]);
printf("Step 4: LoadFraktionRangs - rangname4: %s",fInfo[id][frang4]);
printf("Step 5: LoadFraktionRangs - rangname5: %s",fInfo[id][frang5]);
printf("Step 6: LoadFraktionRangs - rangname6: %s",fInfo[id][frang6]);
}
return print("LoadFraktionRangs - wurde geladen");
}
Alles anzeigen