Help with [faction] OffDuty CMD
#10

Quote:
Originally Posted by SlimDkhili
Посмотреть сообщение
else if(dialogid == 5);
delete it if it existe
Still the same error :/
the full thing here:
PHP код:
new oldskin
else if(dialogid == 5)
    {
        new 
string[128]
        if(
response)
        {
            switch(
listitem)
            {
                case 
0:
                {
                    if(!
PlayerInfo[playerid][pFacDuty])
                    {
                        
oldskin PlayerInfo[playerid][Skin]
                        
PlayerInfo[playerid][pFacDuty] = 1;
                        
SetPlayerColor(playeridTRANSPARENT_BLUE);
                        
format(stringsizeof(string), "* %s grabs their badge, gun and mp5 from the locker."RPN(playerid));
                        
SendNearbyMessage(playerid15stringCOLOR_PURPLECOLOR_PURPLECOLOR_PURPLECOLOR_PURPLECOLOR_PURPLE);
                        
GiveDodWeapon(playerid29500);
                        
GiveDodWeapon(playerid24200);
                        
SetPlayerArmour(playerid100);
                        return 
1;
                    }
                    else
                    {
                        
SetPlayerSkin(playeridoldskin);
                        
PlayerInfo[playerid][pFacDuty] = 0;
                        
SetPlayerColor(playeridTRANSPARENT_WHITE);
                        
SetPlayerArmour(playerid0);
                        
format(stringsizeof(string), "* %s places their badge in the locker."RPN(playerid));
                        
SendNearbyMessage(playerid15stringCOLOR_PURPLECOLOR_PURPLECOLOR_PURPLECOLOR_PURPLECOLOR_PURPLE);
                        return 
1;
                    }
                }
                case 
1:
                {
                    
ShowDialog(playerid6);
                }
                case 
2:
                {
                    
ShowDialog(playerid7);
                }
                case 
3:
                {
                    
ShowDialog(playerid8);
                } 
Reply


Messages In This Thread
Help with [faction] OffDuty CMD - by k2rl - 03.08.2014, 11:08
Re: Help with [faction] OffDuty CMD - by David (Sabljak) - 03.08.2014, 11:10
Re: Help with [faction] OffDuty CMD - by McBan - 03.08.2014, 11:15
Re: Help with [faction] OffDuty CMD - by k2rl - 03.08.2014, 11:29
Re: Help with [faction] OffDuty CMD - by McBan - 03.08.2014, 11:37
Re: Help with [faction] OffDuty CMD - by k2rl - 03.08.2014, 11:44
Re: Help with [faction] OffDuty CMD - by SlimDkhili - 03.08.2014, 11:52
Re: Help with [faction] OffDuty CMD - by k2rl - 03.08.2014, 11:54
Re: Help with [faction] OffDuty CMD - by SlimDkhili - 03.08.2014, 11:58
Re: Help with [faction] OffDuty CMD - by k2rl - 03.08.2014, 12:00

Forum Jump:


Users browsing this thread: 1 Guest(s)