[Ajuda] WARNING GM
#1

PHP код:
public OnPlayerWeaponShot(playeridweaponidhittypehitidFloat:fXFloat:fYFloat:fZ)
{
    if(
hittype == 2)
    {
        new 
Float:amount;
         switch(
weaponid)
        {
            case 
24:amount 26.0//Eagle
            
case 25:amount 18.0//Shotgun
            
case 27:amount 15.0//Combat Shotgun
            
case 29:amount 5.0;  //MP5
            
case 30:amount 7.0;  //AK-47
            
case 31:amount 7.0;  //M4
            
case 42:amount 0.0;  //Extintor - Bombeiros
            
case 9:amount =  0.0;  //Serra - Bombeiros
        
}
    }
    return 
1;

PHP код:
C:\Users\Usuario\Desktop\Brasil Mega City RPG\gamemodes\RPG.pwn(85782) : warning 204symbol is assigned a value that is never used"amount" 
Reply
#2

ta dizendo que o new "amount" nunca foi usado, foi criado e nгo usado pra nada.
Reply
#3

Sу uma coisa: pra setar o dano da arma, se usa a callback OnPlayerGiveDamage, e lб jб vem o Float amount.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)