30.03.2016, 09:38
What is printing in the console (server.log)?
PHP код:
stock IsACop(playerid)
{
if(IsPlayerConnected(playerid))
{
/*new leader = PlayerInfo[playerid][pLeader];
new member = PlayerInfo[playerid][pMember];
if(member == 1 || member == 2 || member == 3 || member == 7) return 1;
else if(leader == 1 || leader == 2 || leader == 3 || leader == 7) return 1;*/
new type = FactionInfo[PlayerInfo[playerid][pMember]][FactionType];
printf("type: %i",FactionInfo[PlayerInfo[playerid][pMember]][FactionType]);
if(type == 1) return 1;
//else if(type == 2) return 1;
//else if(type == 5) return 1;
}
return 0;
}