[Ajuda] Sistema De Pentes
#1

Opa, eae galera beleza?, entao o meu sistema que estou fazendo de pentes esta bugando porque se tiver dois pentes dentro da mochila aparece os dois com os mesmos nome... Codigo abaixo e os nomes dos pentes!

PHP код:
NomePente(playerid,weaponid){ 
    static 
string[200]; 
    switch (
weaponid){ 
        case 
WEAPON_DEAGLE
        {
            
            if(
InventarioAmmo[0][playerid] > 0
            {
                
                
format(stringsizeof (string), "PT Deagle\t%i Pentes\t%i Balas",InventarioPente[0][playerid],InventarioAmmo[0][playerid]);
            }
        }
        case 
WEAPON_MP5:
        {
            
            if(
InventarioAmmo[1][playerid] > 0
            {
                
                
format(stringsizeof (string), "PT MP5\t%i Pentes\t%i Balas",InventarioPente[1][playerid],InventarioAmmo[1][playerid]);
            }
        }
        case 
WEAPON_COLT45:
        {
            
            if(
InventarioAmmo[2][playerid] > 0
            {
                
format(stringsizeof (string), "PT COLT45\t%i Pentes\t%i Balas",InventarioPente[2][playerid],InventarioAmmo[2][playerid]);
            }
        }
        case 
WEAPON_SILENCED:
        {
            
            if(
InventarioAmmo[3][playerid] > 0
            {
                
                
format(stringsizeof (string), "PT SILENCED\t%i Pentes\t%i Balas",InventarioPente[3][playerid],InventarioAmmo[3][playerid]);
            }
        }
        case 
WEAPON_SHOTGUN:
        {
            
            if(
InventarioAmmo[4][playerid] > 0
            {
                
                
format(stringsizeof (string), "PT SHOTGUN\t%i Pentes\t%i Balas",InventarioPente[4][playerid],InventarioAmmo[4][playerid]);
            }
        }
        case 
WEAPON_SHOTGSPA:
        {
            
            if(
InventarioAmmo[5][playerid] > 0
            {
                
                
format(stringsizeof (string), "PT CombatShotgun\t%i Pentes\t%i Balas",InventarioPente[5][playerid],InventarioAmmo[5][playerid]);
            }
        }
        case 
WEAPON_AK47:
        {
            
            if(
InventarioAmmo[5][playerid] > 0
            {
                
                
format(stringsizeof (string), "PT AK47\t%i Pentes\t%i Balas",InventarioPente[5][playerid],InventarioAmmo[5][playerid]);
            }
        }
        case 
WEAPON_M4:
        {
            
            if(
InventarioAmmo[7][playerid] > 0
            {
                
                
format(stringsizeof (string), "PT M4A1\t%i Pentes\t%i Balas",InventarioPente[7][playerid],InventarioAmmo[7][playerid]);
            }
        }
        case 
WEAPON_SNIPER:
        {
            
            if(
InventarioAmmo[8][playerid] > 0
            {
                
                
format(stringsizeof (string), "PT SNIPER\t%i Pentes\t%i Balas",InventarioPente[8][playerid],InventarioAmmo[8][playerid]);
            }
        }
        case 
WEAPON_RIFLE:
        {
            
            if(
InventarioAmmo[9][playerid] > 0
            {                
                
format(stringsizeof (string), "PT RIFLE\t%i Pentes\t%i Balas",InventarioPente[9][playerid],InventarioAmmo[9][playerid]);
            }
        }
    }
    return 
string

@EDIT
Reply


Messages In This Thread
Sistema De Pentes - by JhowWatkins - 23.10.2016, 07:32
Re: Sistema De Pentes - by JhowWatkins - 24.10.2016, 00:22
Re: Sistema De Pentes - by XandyMello - 24.10.2016, 00:24
Re: Sistema De Pentes - by JhowWatkins - 24.10.2016, 00:31
Re: Sistema De Pentes - by XandyMello - 24.10.2016, 00:34
Re: Sistema De Pentes - by JhowWatkins - 24.10.2016, 00:36
Re: Sistema De Pentes - by JhowWatkins - 24.10.2016, 00:48
Re: Sistema De Pentes - by Whoo - 24.10.2016, 00:54
Re: Sistema De Pentes - by JhowWatkins - 24.10.2016, 00:59

Forum Jump:


Users browsing this thread: 2 Guest(s)