MYSQL Load Weapon Problem
#7

there is two Tables , The First i called hem Propreties , he contains this

PHP код:

            HouseInfo
[idx][hdbID]         = tmp
            
HouseInfo[idx][hEntrancex]  = cache_get_row_float(currentRowfx++, dbhandle); 
            
HouseInfo[idx][hEntrancey]  = cache_get_row_float(currentRowfx++, dbhandle); 
            
HouseInfo[idx][hEntrancez]  = cache_get_row_float(currentRowfx++, dbhandle); 
            
HouseInfo[idx][hExitx]         = cache_get_row_float(currentRowfx++, dbhandle); 
            
HouseInfo[idx][hExity]         = cache_get_row_float(currentRowfx++, dbhandle); 
            
HouseInfo[idx][hExitz]         = cache_get_row_float(currentRowfx++, dbhandle); 
            
HouseInfo[idx][hHealthx]    = cache_get_row_int(currentRowfx++, dbhandle); 
            
HouseInfo[idx][hHealthy]     = cache_get_row_int(currentRowfx++, dbhandle); 
            
HouseInfo[idx][hHealthz]     = cache_get_row_int(currentRowfx++, dbhandle); 
            
HouseInfo[idx][hArmourx]     = cache_get_row_int(currentRowfx++, dbhandle); 
            
HouseInfo[idx][hArmoury]     = cache_get_row_int(currentRowfx++, dbhandle); 
            
HouseInfo[idx][hArmourz]     = cache_get_row_int(currentRowfx++, dbhandle); 
            
cache_get_row(currentRowfx++, HouseInfo[idx][hOwner], dbhandle255); 
            
cache_get_row(currentRowfx++, HouseInfo[idx][hDiscription], dbhandle255); 
            
HouseInfo[idx][hValue]         = cache_get_row_int(currentRowfx++, dbhandle); 
            
HouseInfo[idx][hHel]         = cache_get_row_int(currentRowfx++, dbhandle); 
            
HouseInfo[idx][hArm]         = cache_get_row_int(currentRowfx++, dbhandle); 
            
HouseInfo[idx][hInt]         = cache_get_row_int(currentRowfx++, dbhandle); 
            
HouseInfo[idx][hLock]         = cache_get_row_int(currentRowfx++, dbhandle); 
            
HouseInfo[idx][hOwned]         = cache_get_row_int(currentRowfx++, dbhandle); 
            
HouseInfo[idx][hRooms]         = cache_get_row_int(currentRowfx++, dbhandle); 
            
HouseInfo[idx][hRentabil]     = cache_get_row_int(currentRowfx++, dbhandle); 
            
HouseInfo[idx][hRent]         = cache_get_row_int(currentRowfx++, dbhandle); 
            
HouseInfo[idx][hTakings]     = cache_get_row_int(currentRowfx++, dbhandle); 
            
HouseInfo[idx][hLevel]         = cache_get_row_int(currentRowfx++, dbhandle); 
            
HouseInfo[idx][hWorld]         = cache_get_row_int(currentRowfx++, dbhandle); 
            
HouseInfo[idx][hSetted]     = 1
            
HouseInfo[idx][hDrugs]         = cache_get_row_int(currentRowfx++, dbhandle); 
            
HouseInfo[idx][hMaterials]  = cache_get_row_int(currentRowfx++, dbhandle); 
            
cache_get_row(currentRowfx++, HouseInfo[idx][hMessage], dbhandle255); 
But if you put the
PHP код:
Query 
PHP код:
 SELECT p.*,    pw.weapon AS pw_weaponpw.ammo AS pw_ammo FROM properties p LEFT JOIN property_weapons pw ON pw.pid p.id ORDER BY p.id ASCpw.id ASC 
in SQL search he will give you the The first code (above ) + column of pw_weapon and pw_ammo besides Messages column

and there is another Table , wich i called hem Proprety_weapons , his work to save each proprety(house) with 6 slots of weapons , and he acualty doing it , he saves the weapon ID and the AMMO ,

PHP код:
    mysql_tquery_inline(dbhandle"SELECT p.*,    pw.weapon AS pw_weapon, pw.ammo AS pw_ammo FROM properties p LEFT JOIN property_weapons pw ON pw.pid = p.id ORDER BY p.id ASC, pw.id ASC"using inline SQLLoadProperty""); 
hope you understand me ,
Reply


Messages In This Thread
MYSQL Load Weapon Problem - by MCZOFT - 16.11.2014, 23:31
Re: MYSQL Load Weapon Problem - by oliverrud - 17.11.2014, 07:59
Re : MYSQL Load Weapon Problem - by MCZOFT - 17.11.2014, 11:49
Re: Re : MYSQL Load Weapon Problem - by oliverrud - 17.11.2014, 13:10
Re : MYSQL Load Weapon Problem - by MCZOFT - 17.11.2014, 16:18
Re: MYSQL Load Weapon Problem - by oliverrud - 17.11.2014, 16:55
Re : MYSQL Load Weapon Problem - by MCZOFT - 17.11.2014, 18:10

Forum Jump:


Users browsing this thread: 2 Guest(s)