[Ajuda] criar um else para desativar
#6

PHP код:
C:\Users\Usuario\Desktop\gm\gamemodes\BPF.pwn(5371) : warning 215expression has no effect
C
:\Users\Usuario\Desktop\gm\gamemodes\BPF.pwn(5380) : warning 215expression has no effect
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
2 Warnings

fiz assim:
PHP код:
            if(listitem == 3)
            {
                if(
ArmaShock[playerid] == false)
                {
                
ResetPlayerWeaponsEx(playerid);
                
SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);
                
SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);
                
SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
                
GivePlayerWeapon(playerid3310);
                
SendClientMessage(playerid,COLOR_RED,"Vocк equipou sua arma de shock !");
                
SendClientMessage(playerid,COLOR_RED,"Obs: Sу use no procurado se ele tentar fugir, caso contrбrio vocк serб punido !");
                
TogglePlayerControllable(playerid1);
                
ArmaShock[playerid] == true;
                }
                else
                {
                 
ResetPlayerWeaponsEx(playerid);
                 
RemovePlayerAttachedObject(playerid1);
                 
RemovePlayerAttachedObject(playerid2);
                 
RemovePlayerAttachedObject(playerid3);
                 
SendClientMessage(playerid,COLOR_RED,"Vocк Desequipou sua arma de shock !");
                 
ArmaShock[playerid] == false;
                 }
            } 
Reply


Messages In This Thread
criar um else para desativar - by igor97m - 18.01.2015, 16:32
Re: criar um else para desativar - by DiegoLeo - 18.01.2015, 16:38
Re: criar um else para desativar - by Cleyson - 18.01.2015, 16:38
Re: criar um else para desativar - by MultiKill - 18.01.2015, 16:42
Re: criar um else para desativar - by DiegoLeo - 18.01.2015, 16:48
Re: criar um else para desativar - by igor97m - 18.01.2015, 17:20
Re: criar um else para desativar - by MultiKill - 18.01.2015, 17:23
Re: criar um else para desativar - by igor97m - 18.01.2015, 17:28
Re: criar um else para desativar - by MultiKill - 18.01.2015, 17:33
Re: criar um else para desativar - by igor97m - 18.01.2015, 17:44

Forum Jump:


Users browsing this thread: 1 Guest(s)