23.02.2015, 10:01
Well, dunno how but that error fixed from himself. Now i have another problem, here:
for(new h = 0; h <= totalhouses; h++) // = Houses =
{
if(HouseInfo[h][hOwned] == 0)
{
AddStaticPickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]/*,ALL_VIRTUAL_WORLDS*/);
/*format(string,sizeof(string),"[ID: %d]\nAceasta casa este de vanzare\n\tPret: %s$",h,GroupDigit(HouseInfo[h][hBuyPrice]));
HouseLabel[h] = Create3DTextLabel(string,0xE64F4FAA, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 25.0, 0, 1);*/
}
else
{
AddStaticPickup(1314, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]/*,ALL_VIRTUAL_WORLDS*/);
/*format(string,sizeof(string),"[ID: %d]\nAceasta casa ii apartine lui %s",h,HouseInfo[h][hOwner]);
HouseLabel[h] = Create3DTextLabel(string, 0xF5F56FAA, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 25.0, 0, 1);*/
}
}
Initial it was h=1 but changed it to 0 after see your post and still the same. And acctually, houses business are loaded from mysql and first id at both of them is 1. About sbizz i think i know how i solved it. SbizzInfo was declared too small, but Houseinfo is over the number of houses from mysql. So.. stil dont get it :-/.
for(new h = 0; h <= totalhouses; h++) // = Houses =
{
if(HouseInfo[h][hOwned] == 0)
{
AddStaticPickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]/*,ALL_VIRTUAL_WORLDS*/);
/*format(string,sizeof(string),"[ID: %d]\nAceasta casa este de vanzare\n\tPret: %s$",h,GroupDigit(HouseInfo[h][hBuyPrice]));
HouseLabel[h] = Create3DTextLabel(string,0xE64F4FAA, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 25.0, 0, 1);*/
}
else
{
AddStaticPickup(1314, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]/*,ALL_VIRTUAL_WORLDS*/);
/*format(string,sizeof(string),"[ID: %d]\nAceasta casa ii apartine lui %s",h,HouseInfo[h][hOwner]);
HouseLabel[h] = Create3DTextLabel(string, 0xF5F56FAA, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 25.0, 0, 1);*/
}
}
Initial it was h=1 but changed it to 0 after see your post and still the same. And acctually, houses business are loaded from mysql and first id at both of them is 1. About sbizz i think i know how i solved it. SbizzInfo was declared too small, but Houseinfo is over the number of houses from mysql. So.. stil dont get it :-/.