05.01.2016, 17:40
Alright so the problem is simple.
It displays & reads from Type based on your own faction ID
For example my faction ID
Now If I set my own faction ID to 2 it will and I pritn out this will happen
Altho OnFactionLoad works properly
Get player faction
EDIT: Problem is basicaly, with GetPlayerFactionID it reads the correct faction ID but shows Faction ID:3 type.
It displays & reads from Type based on your own faction ID
For example my faction ID
PHP код:
new xx = AccInfo[playerid][PlayerFaction];
printf("Faction type: %i",FactionInfo[xx][FactionType]);
printf("Faction ID: %i",FactionInfo[xx][FactionID]);
/* test 2 with GetPlayerFactionID */
printf("Faction 2 ID: %i",GetPlayerFactionID(playerid));
printf("Faction 2 Type: %i",FactionInfo[GetPlayerFactionID(playerid)][FactionType]);
PHP код:
[19:38:00] Faction type: 3
[19:38:00] Faction ID: 3
[19:38:00] Faction 2 ID: 2
[19:38:00] Faction 2 Type: 3
PHP код:
[19:35:48] Faction ID: 1 || Faction Type: 1
[19:35:48] Faction ID: 2 || Faction Type: 2
[19:35:48] Faction ID: 3 || Faction Type: 3
PHP код:
GetPlayerFactionID(playerid) return AccInfo[playerid][PlayerFaction];