22.11.2011, 15:07
Hello,
I am camping with this problem for a time now, and I couldn't figure out what it actually causes.
As you see it should load houses here. That all works fine, but the owner is always NULL or 0.
If this:
![](http://i.imgur.com/osDT0.png)
Then it says this ingame:
![](http://i.imgur.com/B9qHR.png)
Or if I delete the 0, then the field will be "(null)" and it says the house is owned by NULL ingame. Isn't this weird?
Jochem
I am camping with this problem for a time now, and I couldn't figure out what it actually causes.
pawn Код:
new ss = sscanf(Line,"p<|>dffffffffffffffddds[24]",IDHolder,HouseInfo[h][PickupOutsidePosX],HouseInfo[h][PickupOutsidePosY],HouseInfo[h][PickupOutsidePosZ],HouseInfo[h][PickupInsidePosX],HouseInfo[h][PickupInsidePosY],HouseInfo[h][PickupInsidePosZ],HouseInfo[h][SpawnOutsideX],HouseInfo[h][SpawnOutsideY],HouseInfo[h][SpawnOutsideZ],HouseInfo[h][SpawnOutsideAngle],
HouseInfo[h][SpawnInsideX],HouseInfo[h][SpawnInsideY],HouseInfo[h][SpawnInsideZ],HouseInfo[h][SpawnInsideAngle],HouseInfo[h][InteriorID],HouseInfo[h][Locked],HouseInfo[h][Price],HouseInfo[h][Owner]);
if(!ss)
{
if(!strlen(HouseInfo[h][Owner])) HouseInfo[h][PickupID] = CreateDynamicPickup(1273,23,HouseInfo[h][PickupOutsidePosX],HouseInfo[h][PickupOutsidePosY],HouseInfo[h][PickupOutsidePosZ],-1,-1,-1,200.0);
else HouseInfo[h][PickupID] = CreateDynamicPickup(1272,23,HouseInfo[h][PickupOutsidePosX],HouseInfo[h][PickupOutsidePosY],HouseInfo[h][PickupOutsidePosZ],-1,-1,-1,200.0);
printf("- HOUSE %d: X: %f || Y: %f || Z: %f",h,HouseInfo[h][PickupOutsidePosX],HouseInfo[h][PickupOutsidePosY],HouseInfo[h][PickupOutsidePosZ]);
}
If this:
![](http://i.imgur.com/osDT0.png)
Then it says this ingame:
![](http://i.imgur.com/B9qHR.png)
Or if I delete the 0, then the field will be "(null)" and it says the house is owned by NULL ingame. Isn't this weird?
Jochem