їAlguien me explica este cуdigo?
#1

PHP код:
// original: https://sampforum.blast.hk/showthread.ph...7.46092205
if(listitem == 1)
        {
            new 
query[80], Cacheweapons;
            
mysql_format(SQLHandlequerysizeof(query), "SELECT WeaponID, Ammo FROM houseguns WHERE HouseID=%d ORDER BY WeaponID ASC"id);
            
weapons mysql_query(SQLHandlequery);
            new 
rows cache_num_rows();
            if(
rows) {
                new list[
512], weapname[32];
                
format(list, sizeof(list), "#\tWeapon Name\tAmmo\n");
                for(new 
irows; ++i)
                {
                    
GetWeaponName(cache_get_field_content_int(i"WeaponID"), weapnamesizeof(weapname));
                    
format(list, sizeof(list), "%s%d\t%s\t%s\n", list, i+1weapnameconvertNumber(cache_get_field_content_int(i"Ammo")));
                }
                
                
ShowPlayerDialog(playeridDIALOG_HOUSE+10DIALOG_STYLE_TABLIST_HEADERS"House Guns", list, "Take""Back");
            }else{
                
SendClientMessage(playerid0xE74C3CFF"You don't have any guns in your house.");
            }
            
            
cache_delete(weapons);
        } 
quiero hacer un dialog en el que aparezca una lista, y el nъmero de items de una lista sea segъn lo que estй almacenado, con este cуdigo se ejecuta, pero no sй como sacar eso, alguien me explica el cуdigo? ;n;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)