05.01.2016, 17:53
Doesnt help mate 
I tried using this too
But with that it displays faction ID: 3 and faction type 0 ...

I tried using this too
PHP код:
GetPlayerFactionID(playerid) return FactionInfo[AccInfo[playerid][PlayerFaction]][FactionID];
PHP код:
public OnFactionLoad() {
new rows, fields;
cache_get_data(rows, fields, mysql);
if(rows) {
for(new i = 0; i < rows && i < MAX_FACTIONS; i++) {
new string[512];
cache_get_field_content(i, "Name", string);
strreplace(string, '_', ' ');
format(FactionInfo[i][FactionName], sizeof(string), string);
FactionInfo[i][FactionID] = cache_get_field_content_int(i,"ID");
FactionInfo[i][FactionEnterX] = cache_get_field_content_float(i,"EnterX");
FactionInfo[i][FactionEnterY] = cache_get_field_content_float(i,"EnterY");
FactionInfo[i][FactionEnterZ] = cache_get_field_content_float(i,"EnterZ");
FactionInfo[i][FactionExitX] = cache_get_field_content_float(i,"ExitX");
FactionInfo[i][FactionExitY] = cache_get_field_content_float(i,"ExitY");
FactionInfo[i][FactionExitZ] = cache_get_field_content_float(i,"ExitZ");
FactionInfo[i][FactionWorld] = cache_get_field_content_int(i,"World");
FactionInfo[i][FactionInterior] = cache_get_field_content_int(i,"Interior");
FactionInfo[i][FactionBank] = cache_get_field_content_int(i,"FactionBank");
FactionInfo[i][FactionDeagleAmmo] = cache_get_field_content_int(i,"DeagleAmmo");
FactionInfo[i][FactionM4Ammo] = cache_get_field_content_int(i,"M4Ammo");
FactionInfo[i][FactionShotgunAmmo] = cache_get_field_content_int(i,"ShotgunAmmo");
FactionInfo[i][FactionSniperAmmo] = cache_get_field_content_int(i,"SniperAmmo");
FactionInfo[i][FactionSmuggledCocaine] = cache_get_field_content_int(i,"CocaineSmuggledWhen");
FactionInfo[i][FactionType] = cache_get_field_content_int(i,"Type");
FactionInfo[i][FactionCocaineAmount] = cache_get_field_content_int(i,"CocaAmount");
FactionInfo[i][FactionPickup] = CreateDynamicPickup(1275, 1, cache_get_field_content_float(i,"EnterX"),cache_get_field_content_float(i,"EnterY"),cache_get_field_content_float(i,"EnterZ"));
format(string,sizeof(string),"Faction Name: %s\nFaction ID:%i",FactionInfo[i][FactionName],FactionInfo[i][FactionID]);
FactionInfo[i][FactionText] = CreateDynamic3DTextLabel(string, 0x008080FF, FactionInfo[i][FactionEnterX],FactionInfo[i][FactionEnterY],FactionInfo[i][FactionEnterZ], 5.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0);
printf("Faction ID: %i || Faction Type: %i",FactionInfo[i][FactionID],FactionInfo[i][FactionType]);
}
}
return true;
}