Stock ACop +Rep for helping...
#2

PHP код:

ACop
(playerid)
{
    if(
IsPlayerConnected(playerid))
    {
        new 
leader PlayerInfo[playerid][pLeader];
        new 
member PlayerInfo[playerid][pMember];
        if(
member ==|| member == || 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;

or maybe fill the else if ..


PHP код:

ACop
(playerid

    if(
IsPlayerConnected(playerid)) 
    { 
        new 
leader PlayerInfo[playerid][pLeader]; 
        new 
member PlayerInfo[playerid][pMember]; 
        if(
member ==|| member == || member == 6
        { 
            return 
1
        } 
        else if(
leader != || leader != || leader != 6)  
        { 
            
// do here something 
           
return 1
        } 
     } 
    return 
0

Reply


Messages In This Thread
Stock ACop +Rep for helping... - by MrCallum - 01.01.2015, 12:49
Re : Stock ACop +Rep for helping... - by MCZOFT - 01.01.2015, 12:51
Re: Stock ACop +Rep for helping... - by MrCallum - 01.01.2015, 12:55

Forum Jump:


Users browsing this thread: 2 Guest(s)