/createhouse problems.
#1

Hello.
I have this command, but it moves house ID 0 and doesn't create a new one, I cannot seem to find the problem.
pawn Код:
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; h < sizeof(HouseInfo); h++)
                {
                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);
                OnPropUpdate();
                return 1;
            }
            print("Debug after loop");
            return 1;
        }
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: 2 Guest(s)