/createhouse problems.
#5

pawn Код:
if(strcmp(cmd, "/createhouse", true) == 0)
        {
            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 < sizeof(HouseInfo); 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 yet, moves house ID 0 and doesn't create a new one.
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)