Problem with cycles in OnGameModeInit()
#4

this my LoadProperty()
PHP код:
stock LoadProperty()
{
     print(
"LoadProp funct started[DEBUG]");
                new 
HOUSE;
                new 
q[128];
                new 
res[256];
                new 
idx;
                while(
idx 665)
   {
                
format(q,sizeof(q),"SELECT * FROM DOM_server WHERE ID_h = %d",idx);
                
mysql_query(q);
                
mysql_store_result();
                new 
ss;
                if(
mysql_fetch_row(res))
                {
                
sscanf(res,"p<|>dffffffs[24]dddddddddddffffdd",
                
ss,
                
HouseInfo[idx][hEntrancex],
                
HouseInfo[idx][hEntrancey],
                
HouseInfo[idx][hEntrancez],
                
HouseInfo[idx][hExitx],
                
HouseInfo[idx][hExity],
                
HouseInfo[idx][hExitz],
                
HouseInfo[idx][hOwner],
                
HouseInfo[idx][hValue],
                
HouseInfo[idx][hHel],
                
HouseInfo[idx][hInt],
                
HouseInfo[idx][hLock] ,
                
HouseInfo[idx][hOwned] ,
                
HouseInfo[idx][hTakings] ,
                
HouseInfo[idx][hVec],
                
HouseInfo[idx][hVcol1],
                
HouseInfo[idx][hVcol2] ,
                
HouseInfo[idx][hKlass],
                
HouseInfo[idx][hVehSost] ,
                
HouseInfo[idx][hCarx],
                
HouseInfo[idx][hCary],
                
HouseInfo[idx][hCarz],
                
HouseInfo[idx][hCarc],
                
HouseInfo[idx][hNarko],
                
HouseInfo[idx][hMoney]);
                
HOUSE++;
                
HouseInfo[idx][hPickup] = CreateDynamicPickup(1273,23,HouseInfo[idx][hEntrancex],HouseInfo[idx][hEntrancey],HouseInfo[idx][hEntrancez]);
                
HouseInfo[idx][hMIcon] = CreateDynamicMapIcon(HouseInfo[idx][hEntrancex],HouseInfo[idx][hEntrancey],HouseInfo[idx][hEntrancez],31,COLOR_WHITE);
                
mysql_free_result();
                }
            }
            print(
"Property LOAD");
            return 
true;
     } 
Reply


Messages In This Thread
Problem with cycles in OnGameModeInit() - by kamilot73 - 12.09.2012, 06:59
Re: Problem with cycles in OnGameModeInit() - by [HiC]TheKiller - 12.09.2012, 07:03
Re: Problem with cycles in OnGameModeInit() - by kamilot73 - 12.09.2012, 07:07
Re: Problem with cycles in OnGameModeInit() - by kamilot73 - 12.09.2012, 07:09
Re : Problem with cycles in OnGameModeInit() - by ricardo178 - 12.09.2012, 07:12
Re: Re : Problem with cycles in OnGameModeInit() - by kamilot73 - 12.09.2012, 07:18
Re: Problem with cycles in OnGameModeInit() - by [HiC]TheKiller - 12.09.2012, 07:21
Re: Problem with cycles in OnGameModeInit() - by kamilot73 - 12.09.2012, 07:23

Forum Jump:


Users browsing this thread: 2 Guest(s)