Faction ID problem
#1

Alright so the problem is simple.

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]); 
Now If I set my own faction ID to 2 it will and I pritn out this will happen

PHP код:
[19:38:00Faction type3
[19:38:00Faction ID3
[19:38:00Faction 2 ID2
[19:38:00Faction 2 Type
Altho OnFactionLoad works properly
PHP код:
[19:35:48Faction ID|| Faction Type1
[19:35:48Faction ID|| Faction Type2
[19:35:48Faction ID|| Faction Type
Get player faction
PHP код:
GetPlayerFactionID(playerid) return AccInfo[playerid][PlayerFaction]; 
EDIT: Problem is basicaly, with GetPlayerFactionID it reads the correct faction ID but shows Faction ID:3 type.
Reply


Messages In This Thread
Faction ID problem - by TwinkiDaBoss - 05.01.2016, 17:40
Re: Faction ID problem - by Jefff - 05.01.2016, 17:46
Re: Faction ID problem - by TwinkiDaBoss - 05.01.2016, 17:53
Re: Faction ID problem - by justinnater - 05.01.2016, 18:16
Re: Faction ID problem - by TwinkiDaBoss - 05.01.2016, 18:37
Re: Faction ID problem - by justinnater - 05.01.2016, 18:44
Re: Faction ID problem - by TwinkiDaBoss - 05.01.2016, 20:08
Re: Faction ID problem - by justinnater - 05.01.2016, 20:16
Re: Faction ID problem - by TwinkiDaBoss - 05.01.2016, 20:20
Re: Faction ID problem - by justinnater - 05.01.2016, 20:25

Forum Jump:


Users browsing this thread: 2 Guest(s)