/createhouse problems.
#3

if(strcmp(cmd, "/createhouse", true) == 0)
{
new house;
if (PlayerInfo[playerid][pAdmin] < 10) return SendClientMessage(playerid,COLOR_WHITE,"You're not authroized to use this command !");
print("Debug above loop");
for(new h = 0; h < SCRIPT_MAXHOUSES; h++)
{
if(HouseInfo[house][hOwned] == 1)
{
house = h;
break;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
print("Debug in loop");
HouseInfo[house][hEntrancex] = X;
printf("House ID %d, X[%f]", house, X);
HouseInfo[house][hEntrancey] = Y;
printf("House ID %d, Y[%f]", house, Y);
HouseInfo[house][hEntrancez] = Z;
printf("House ID %d, Z[%f]", house, Z);
HouseInfo[house][hPickupID] = CreateDynamicPickup(1273, 1, X, Y, Z);
house++;
OnPropUpdate();
return 1;
}
print("Debug after loop");
return 1;
}

It moves house ID 0, and it dosnt create a new house..
Reply


Messages In This Thread
/createhouse problems. - by DiiP - 16.09.2011, 17:23
Re: /createhouse problems. - by =WoR=Varth - 16.09.2011, 17:33
Re: /createhouse problems. - by DiiP - 16.09.2011, 18:25
Re: /createhouse problems. - by =WoR=Varth - 16.09.2011, 18:27
Re: /createhouse problems. - by DiiP - 16.09.2011, 18:48
Re: /createhouse problems. - by Tee - 16.09.2011, 23:24
Re: /createhouse problems. - by Jack_Leslie - 17.09.2011, 07:43

Forum Jump:


Users browsing this thread: 1 Guest(s)