GetPlayerWeaponData
#4

PHP код:
stock list_weapons(playerid)
{
    new 
wep_list[256], wep_holder[128];
    new 
weapon_idweapon_ammo
    
    for(new 
i13i++){
        
        
GetPlayerWeaponData(playeridiweapon_idweapon_ammo);
        
        if(
weapon_id != 0)
        {
            
format(wep_holdersizeof wep_holder"Wep ID: %i - Ammo: %i\n"weapon_idweapon_ammo); 
            
strcat(wep_listwep_holder); 
        }
    }
    
ShowPlayerDialog(playerid0DIALOG_STYLE_LIST"Caption"wep_list"<<"">>"); 
    return 
1;

Is a way.
Reply


Messages In This Thread
GetPlayerWeaponData - by NealPeteros - 16.12.2017, 07:50
Re: GetPlayerWeaponData - by Kane - 16.12.2017, 08:21
Re: GetPlayerWeaponData - by NealPeteros - 16.12.2017, 08:28
Re: GetPlayerWeaponData - by Kane - 16.12.2017, 08:33
Re: GetPlayerWeaponData - by RogueDrifter - 16.12.2017, 08:35
Re: GetPlayerWeaponData - by NealPeteros - 16.12.2017, 08:54
Re: GetPlayerWeaponData - by RogueDrifter - 16.12.2017, 09:01
Re: GetPlayerWeaponData - by NealPeteros - 16.12.2017, 09:14
Re: GetPlayerWeaponData - by RogueDrifter - 16.12.2017, 09:19
Re: GetPlayerWeaponData - by Kane - 16.12.2017, 09:26

Forum Jump:


Users browsing this thread: 5 Guest(s)