Error 10
#3

PHP код:
CMD:mask(playerid,params[])
{
    
//new string[256];
    //new sendername[MAX_PLAYER_NAME];
    
if(IsPlayerInAnyVehicle(playerid))
    {
        if(
PlayerInfo[playerid][pMask] == || Mask[playerid] == 1)
        {
            if(
MaskOn[playerid] == 0)
            {
                
//new vehicleid = GetPlayerVehicleID(playerid);
                
MaskOn[playerid] = 1;
                
GameTextForPlayer(playerid"~p~MASK ON"50003);
                for(new 
0MAX_PLAYERSi++)
                {
                    
ShowPlayerNameTagForPlayer(playeridi0); //ShowPlayerNameTagForPlayer(i, playerid, false);
                
}
            }
            else if(
MaskOn[playerid] == 1)
            {
                
MaskOn[playerid] = 0;
                
GameTextForPlayer(playerid"~p~MASK OFF"50003);
                for(new 
0MAX_PLAYERSi++) ShowPlayerNameTagForPlayer(playeridi1);
            }
            return 
1;
        }
        else
        {
            
SCM(playeridCOLOR_LIGHTRED"Nu ai o masca.");
        }
    }
    if(!
IsPlayerInAnyVehicle(playerid))
    {
        if(
PlayerInfo[playerid][pMask] == || Mask[playerid] == 1)
        {
            if(
MaskOn[playerid] == 0)
            {
                
//new vehicleid = GetPlayerVehicleID(playerid);
                
MaskOn[playerid] = 1;
                
GameTextForPlayer(playerid"~p~MASK ON"50003);
                for(new 
0MAX_PLAYERSi++)
                {
                    
ShowPlayerNameTagForPlayer(playeridi0); //ShowPlayerNameTagForPlayer(i, playerid, false);
                
}
            }
            else if(
MaskOn[playerid] == 1)
            {
                
MaskOn[playerid] = 0;
                
GameTextForPlayer(playerid"~p~MASK OFF"50003);
                for(new 
0MAX_PLAYERSi++) ShowPlayerNameTagForPlayer(playeridi1);
            }
            return 
1;
        }
        else
        {
            
SCM(playeridCOLOR_LIGHTRED"Nu ai o masca.");
        }
    }
    return 
1;

Reply


Messages In This Thread
Error 10 - by radiobizza - 18.08.2015, 20:50
Re: Error 10 - by Inn0cent - 18.08.2015, 20:56
Re: Error 10 - by radiobizza - 18.08.2015, 20:58
Re: Error 10 - by Inn0cent - 18.08.2015, 21:00
Re: Error 10 - by radiobizza - 18.08.2015, 21:01
Re: Error 10 - by Inn0cent - 18.08.2015, 21:03
Re: Error 10 - by radiobizza - 18.08.2015, 21:05
Re: Error 10 - by radiobizza - 18.08.2015, 21:38
Re: Error 10 - by Inn0cent - 18.08.2015, 21:47

Forum Jump:


Users browsing this thread: 1 Guest(s)