01.01.2015, 12:51
PHP код:
ACop(playerid)
{
if(IsPlayerConnected(playerid))
{
new leader = PlayerInfo[playerid][pLeader];
new member = PlayerInfo[playerid][pMember];
if(member ==1 || member == 3 || member == 6)
{
return 1;
}
/*else if(leader ==1 || leader == 3 || leader == 6) / no need for this line .. watch your code dude .. you're telling hem if member = 1 or 3 or 6 with return 1 , and you're saying to hem again else if leader == 1 or 3 or 6 ...
{
return 1;
}*/
}
return 0;
}
PHP код:
ACop(playerid)
{
if(IsPlayerConnected(playerid))
{
new leader = PlayerInfo[playerid][pLeader];
new member = PlayerInfo[playerid][pMember];
if(member ==1 || member == 3 || member == 6)
{
return 1;
}
else if(leader != 1 || leader != 3 || leader != 6)
{
// do here something
return 1;
}
}
return 0;
}