16.01.2016, 09:07
(
Последний раз редактировалось StreetRP; 16.01.2016 в 09:37.
)
Hello evryone , i have a bug in my house loading
This is the code
In my database i have 2 house in my table and when i launch the server , i can see in the serverlog 2 house pickup created but in game i can see only one ...
Can help me please ?
PHP код:
House_Refresh(idz)
{
if (idz != -1)
{
static
string[128];
if (HouseInfo[HouseInfo[idz][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[idz][hPrice], HouseInfo[idz][hID]);
HouseInfo[HouseInfo[idz][hID]][hDLabel] = Create3DTextLabel(string, 0xFFFFFF, HouseInfo[idz][hEntranceX],HouseInfo[idz][hEntranceY],HouseInfo[idz][hEntranceZ], 10.0, 0, 0);
HouseInfo[HouseInfo[idz][hID]][hOutsideIcon] = CreateDynamicPickup(1273, 1, HouseInfo[idz][hEntranceX], HouseInfo[idz][hEntranceY], HouseInfo[idz][hEntranceZ], HouseInfo[idz][hWorld]);
}
else {
format(string,sizeof(string),""COL_BROWN"Owner: "COL_WHITE"%s\n"COL_BROWN"Street Number: "COL_WHITE"%d", HouseInfo[idz][hOwner], HouseInfo[idz][hID]);
HouseInfo[HouseInfo[idz][hID]][hDLabel] = Create3DTextLabel(string, 0xFFFFFF, HouseInfo[HouseInfo[idz][hID]][hEntranceX],HouseInfo[HouseInfo[idz][hID]][hEntranceY], HouseInfo[HouseInfo[idz][hID]][hEntranceZ], 10.0, 0, 0);
HouseInfo[HouseInfo[idz][hID]][hOutsideIcon] = CreateDynamicPickup(1272, 1, HouseInfo[HouseInfo[idz][hID]][hEntranceX], HouseInfo[HouseInfo[idz][hID]][hEntranceY], HouseInfo[HouseInfo[idz][hID]][hEntranceZ], HouseInfo[HouseInfo[idz][hID]][hWorld]);
}
printf("House pickup created %d", idz);
}
return 1;
}
In my database i have 2 house in my table and when i launch the server , i can see in the serverlog 2 house pickup created but in game i can see only one ...
Can help me please ?