Code not loading
#1

When i use /pl i could see the stats of myself but i cant see it... and when i use /pl [id] i can see others but still cant see mine..

Plz check the code and plz help to rewrite it ? plz
PHP код:
CMD:pl(playeridparams[])
{
    new 
ofplayerid;
    if(
IsNumeric1(params))
    {
        
ofplayerid strval(params);
        if(!
IsPlayerConnected(ofplayerid)) return SendClientMessage(playerid,COLOR_RED,"[Error] Player Not Connected");
    }
    else
    {
        
ofplayerid INVALID_PLAYER_ID;
        
SendClientMessage(playerid,COLOR_RED,"[Error] Not an valid player");
    }
    if(    
IsPlayerConnected(ofplayerid) && ofplayerid != playerid)
    {
           
//destroy all labels first
        
for(new 0GetPlayerPoolSize(); <= ji++)
        {
            
DestroyPlayerLabel(playeridi);
        }
        
CreatePlayerLabel(playeridofplayerid);
        
g_LABEL_MODE[playerid] = MODE_SINGLE_PLAYER;//enable labels
    
}
    else
    {
        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;
        }
    }
    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)