19.10.2016, 10:59
PHP код:
forward LoadGates();
public LoadGates()
{
housess = cache_num_rows();
for(new i = 1; i <= housess; i++)
{
if(HouseInfo[i][hGate] == 1)
{
printf("%d %f %f %f %f %f %f",i,HouseInfo[i][hGx],HouseInfo[i][hGy],HouseInfo[i][hGz],HouseInfo[i][hGRx],HouseInfo[i][hGRy],HouseInfo[i][hGRz]);
Gate[i] = CreateObject(980,HouseInfo[i][hGx],HouseInfo[i][hGy],HouseInfo[i][hGz],HouseInfo[i][hGRx],HouseInfo[i][hGRy],HouseInfo[i][hGRz],500.00 );
}
}
return 1;
}
PHP код:
mysql_format(SQL, query, sizeof(query), "SELECT * FROM `houses`");
mysql_tquery(SQL, query, "LoadGates", "");