Houses Load
#7

I made it like that and nothing
PHP код:
new Cacheresult mysql_query(1"SELECT * FROM houses");
for(new 
xcache_get_row_count(); != j; ++x)
    {
        
HouseInfo[x][HouseID] = cache_get_field_content_int(x"id");
        
HouseInfo[x][EntranceX] = cache_get_field_content_float(x"EntranceX");
        
HouseInfo[x][EntranceY] = cache_get_field_content_float(x"EntranceY");
        
HouseInfo[x][EntranceZ] = cache_get_field_content_float(x"EntranceZ");
        
HouseInfo[x][ExitX] = cache_get_field_content_float(x"ExitX");
        
HouseInfo[x][ExitY] = cache_get_field_content_float(x"ExitY");
        
HouseInfo[x][ExitZ] = cache_get_field_content_float(x"ExitZ");
        
HouseInfo[x][InsideInt] = cache_get_field_content_int(x"InsideInt");
        
cache_get_field_content(x"owner"HouseInfo[x][owner], 1MAX_PLAYER_NAME);
        
HouseInfo[x][owned] = cache_get_field_content_int(x"owned");
        
HouseInfo[x][HousePrice] = cache_get_field_content_int(x"price");
        
cache_get_field_content(x"text"HouseInfo[x][HouseText]);
        
Create3DTextLabel(HouseInfo[x][HouseText], COLOR_GREENHouseInfo[x][EntranceX], HouseInfo[x][EntranceY], HouseInfo[x][EntranceZ], 3001);
        
mysql_log(LOG_ALL);
        
printf("x = %f\ny = %f\nz = %f",HouseInfo[x][EntranceX], HouseInfo[x][EntranceY], HouseInfo[x][EntranceZ]);
        
cache_delete(result);
    }
    } 
And it printed
Код:
13:12:31] x = 1419.949951
y = -1640.239990
z = 13.546899
[13:12:31] x = 0.000000
y = 0.000000
z = 0.000000
[13:12:31] x = 0.000000
y = 0.000000
z = 0.000000
[13:12:31] x = 0.000000
y = 0.000000
z = 0.000000
[13:12:31] x = 0.000000
y = 0.000000
z = 0.000000
[13:12:31] x = 0.000000
y = 0.000000
z = 0.000000
[13:12:31] x = 0.000000
y = 0.000000
z = 0.000000
[13:12:31] x = 0.000000
y = 0.000000
z = 0.000000
[13:12:31] x = 0.000000
y = 0.000000
z = 0.000000
[13:12:31] x = 0.000000
y = 0.000000
z = 0.000000
[13:12:31] x = 0.000000
y = 0.000000
z = 0.000000
[13:12:31] x = 0.000000
y = 0.000000
z = 0.000000
[13:12:31] x = 0.000000
y = 0.000000
z = 0.000000
[13:12:31] x = 0.000000
y = 0.000000
z = 0.000000
[13:12:31] x = 0.000000
y = 0.000000
z = 0.000000
[13:12:31] x = 0.000000
y = 0.000000
z = 0.000000
[13:12:31] x = 0.000000
y = 0.000000
z = 0.000000
[13:12:31] x = 0.000000
y = 0.000000
z = 0.000000
[13:12:31] x = 0.000000
y = 0.000000
z = 0.000000
[13:12:31] x = 0.000000
y = 0.000000
z = 0.000000
[13:12:31] x = 0.000000
y = 0.000000
z = 0.000000
[13:12:31] x = 0.000000
y = 0.000000
z = 0.000000
[13:12:31] x = 0.000000
y = 0.000000
z = 0.000000
//and more
And there are 148 house in the table ?!
Reply


Messages In This Thread
Houses Load - by nezo2001 - 12.06.2015, 22:02
Re: Houses Load - by nezo2001 - 13.06.2015, 00:19
Re: Houses Load - by nezo2001 - 13.06.2015, 07:40
Re: Houses Load - by Konstantinos - 13.06.2015, 09:46
Re: Houses Load - by nezo2001 - 13.06.2015, 16:52
Re: Houses Load - by Konstantinos - 13.06.2015, 17:05
Re: Houses Load - by nezo2001 - 14.06.2015, 11:08
Re: Houses Load - by Konstantinos - 14.06.2015, 11:15
Re: Houses Load - by nezo2001 - 14.06.2015, 11:23

Forum Jump:


Users browsing this thread: 1 Guest(s)