PHP код:
forward OnLoadHouseCallback();
public OnLoadHouseCallback()
{
new rows, fields, i, buf[64];
cache_get_data(rows, fields);
for(i = 1; i < rows; i++)
{
cache_get_field_content(i-1, "name", buf), strmid(HouseInfo[i][hName], buf, 0, strlen(buf), 32);
cache_get_field_content(i-1, "owner",buf), strmid(HouseInfo[i][hOwner], buf, 0, strlen(buf), 32);
cache_get_field_content(i-1, "level",buf), HouseInfo[i][hLevel] = strval(buf);
cache_get_field_content(i-1, "price", buf), HouseInfo[i][hCost] = strval(buf);
cache_get_field_content(i-1, "interior", buf), HouseInfo[i][hInterior] = strval(buf);
cache_get_field_content(i-1, "enterX", buf), HouseInfo[i][hEnterX]= floatstr(buf);
cache_get_field_content(i-1, "enterY", buf), HouseInfo[i][hEnterY] = floatstr(buf);
cache_get_field_content(i-1, "enterZ", buf), HouseInfo[i][hEnterZ] = floatstr(buf);
cache_get_field_content(i-1, "spawnX", buf), HouseInfo[i][hSpawnX] = floatstr(buf);
cache_get_field_content(i-1, "spawnY", buf), HouseInfo[i][hSpawnY] = floatstr(buf);
cache_get_field_content(i-1, "spawnZ", buf), HouseInfo[i][hSpawnZ] = floatstr(buf);
cache_get_field_content(i-1, "spawnA", buf), HouseInfo[i][hSpawnA] = floatstr(buf);
cache_get_field_content(i-1, "carid", buf), HouseInfo[i][hCarID] = strval(buf);
cache_get_field_content(i-1, "color", buf), HouseInfo[i][hColor] = strval(buf);
cache_get_field_content(i-1, "carX", buf), HouseInfo[i][hCarX] = floatstr(buf);
cache_get_field_content(i-1, "carY", buf), HouseInfo[i][hCarY] = floatstr(buf);
cache_get_field_content(i-1, "carZ", buf), HouseInfo[i][hCarZ] = floatstr(buf);
cache_get_field_content(i-1, "carA", buf), HouseInfo[i][hCarA] = floatstr(buf);
cache_get_field_content(i-1, "health", buf), HouseInfo[i][hHealth] = strval(buf);
cache_get_field_content(i-1, "moneys", buf), HouseInfo[i][hMoneys] = strval(buf);
cache_get_field_content(i-1, "clooth", buf), HouseInfo[i][hClooth] = strval(buf);
cache_get_field_content(i-1, "save", buf), HouseInfo[i][hSave] = strval(buf);
cache_get_field_content(i-1, "doors", buf), HouseInfo[i][hDoors] = strval(buf);
if(!strcmp(HouseInfo[i][hOwner], "None", true))
{
HousePickupOut[i] = CreateDynamicPickup(1273, 23, HouseInfo[i][hEnterX], HouseInfo[i][hEnterY], HouseInfo[i][hEnterZ]);
HouseInfo[i][hIcon] = CreateDynamicMapIcon(HouseInfo[i][hEnterX], HouseInfo[i][hEnterY], HouseInfo[i][hEnterZ], 31, COLOR_WHITE, 0, -1, -1, 400.0);
}
else
{
HousePickupOut[i] = CreateDynamicPickup(1272, 23, HouseInfo[i][hEnterX], HouseInfo[i][hEnterY], HouseInfo[i][hEnterZ]);
HouseInfo[i][hIcon] = CreateDynamicMapIcon(HouseInfo[i][hEnterX], HouseInfo[i][hEnterY], HouseInfo[i][hEnterZ], 32, COLOR_WHITE, 0, -1, -1, 400.0);
}
CreateHouseExitPickup(i);
HouseOpen[i] = false;
}
printf(" [Çàãðóæåíî äîìîâ] - %i.", i);
return 1;
}
Если это не поможет, то дело: