Code not loading
#6

There you code wrote more cleanly

PHP код:
CMD:pl(playeridparams[]) 

    new 
ofplayerid
    if(
sscanf(params"u"ofplayerid))
        return 
SendClientMessage(playerid,COLOR_RED,"[Error] Player Not Connected");      
    if(!
IsPlayerConnected(ofplayerid))
        return 
SendClientMessage(playerid,COLOR_RED,"[Error] Not an valid player");
    if(
ofplayerid == playerid)
    {
        if(
g_LABEL_MODE[playerid] == MODE_DISABLED)//enable labels 
        

            for(new 
0GetPlayerPoolSize(); <= ji++) 
            { 
                if(
IsPlayerConnected(i)) 
                { 
                    if(
!= ofplayerid
                    { 
                        
CreatePlayerLabel(playeridi); 
                    } 
                } 
            } 
            
g_LABEL_MODE[playerid] = MODE_ENABLED
        } 
        else
//disable labels 
        

            for(new 
0GetPlayerPoolSize(); <= ji++) 
            { 
                
DestroyPlayerLabel(playeridi); 
            } 
            
g_LABEL_MODE[playerid] = MODE_DISABLED
        }     
    }
    else
    {
        
//destroy all labels first 
        
for(new 0GetPlayerPoolSize(); <= ji++) 
        { 
            
DestroyPlayerLabel(playeridi); 
        } 
        
CreatePlayerLabel(playeridofplayerid); 
        
g_LABEL_MODE[playerid] = MODE_SINGLE_PLAYER;//enable labels 
    
}
    return 
1;

Reply


Messages In This Thread
Code not loading - by Jokers98s - 17.02.2018, 14:55
Re: Code not loading - by Dayrion - 17.02.2018, 15:03
Re: Code not loading - by Jokers98s - 17.02.2018, 15:58
Re: Code not loading - by Abagail - 17.02.2018, 16:03
Re: Code not loading - by Mugala - 17.02.2018, 16:03
Re: Code not loading - by Dayrion - 18.02.2018, 03:56
Re: Code not loading - by DobbysGamertag - 18.02.2018, 04:16
Re: Code not loading - by Dayrion - 18.02.2018, 04:35

Forum Jump:


Users browsing this thread: 1 Guest(s)