16.01.2016, 10:24
PHP код:
House_Refresh(idz)
{
if (idz != -1)
{
static
string[128];
for(new i = 0; i <= idz; i++) {
if (HouseInfo[HouseInfo[i][hID]][hOwned] == 0) {
format(string,sizeof(string),""COL_BROWN"Owner: "COL_WHITE"None\n"COL_BROWN"Price: "COL_WHITE"$%d\n"COL_BROWN"Street Number: "COL_WHITE"%d", HouseInfo[i][hPrice], HouseInfo[i][hID]);
HouseInfo[HouseInfo[i][hID]][hDLabel] = Create3DTextLabel(string, 0xFFFFFF, HouseInfo[i][hEntranceX],HouseInfo[i][hEntranceY],HouseInfo[i][hEntranceZ], 10.0, 0, 0);
HouseInfo[HouseInfo[i][hID]][hOutsideIcon] = CreateDynamicPickup(1273, 1, HouseInfo[i][hEntranceX], HouseInfo[i][hEntranceY], HouseInfo[i][hEntranceZ], HouseInfo[i][hWorld]);
}
else {
format(string,sizeof(string),""COL_BROWN"Owner: "COL_WHITE"%s\n"COL_BROWN"Street Number: "COL_WHITE"%d", HouseInfo[i][hOwner], HouseInfo[i][hID]);
HouseInfo[HouseInfo[i][hID]][hDLabel] = Create3DTextLabel(string, 0xFFFFFF, HouseInfo[HouseInfo[i][hID]][hEntranceX],HouseInfo[HouseInfo[i][hID]][hEntranceY], HouseInfo[HouseInfo[i][hID]][hEntranceZ], 10.0, 0, 0);
HouseInfo[HouseInfo[i][hID]][hOutsideIcon] = CreateDynamicPickup(1272, 1, HouseInfo[HouseInfo[i][hID]][hEntranceX], HouseInfo[HouseInfo[i][hID]][hEntranceY], HouseInfo[HouseInfo[i][hID]][hEntranceZ], HouseInfo[HouseInfo[i][hID]][hWorld]);
}
}
printf("House pickup created %d", idz);
}
return 1;
}