Thread: Why the wall doesnt go away?

Results 1 to 5 of 5
  1. #1 Why the wall doesnt go away? 
    Registered Member
    Join Date
    Nov 2008
    Posts
    423
    Thanks given
    19
    Thanks received
    9
    Rep Power
    49
    Hello, I wanted to delete a wall from that house.
    But if I add that code to public void deletethatobject it doesnt work.
    But why? it is on the middle on both so I tryed them both but no one helped.. whats wrong??!

    THIS IS THE CODE I USED::::::
    Code:
    public void deletethatobject(int objectX, int objectY) { 
    	ReplaceObject2(objectX, objectY, 6951, -1, 10);
    	}
    public void Deleteobjects() {
    
    		   deletethatobject(3079, 3507);
    		   deletethatobject(3079, 3506);
    
    }


    [URL=http://g.imageshack.us/img228/wallerrorzzlt0.jpg/1/][IMG]http://img228.imageshack.us/img228/wallerrorzzlt0
    Reply With Quote  
     

  2. #2  
    Registered Member
    cocoa's Avatar
    Join Date
    Jan 2008
    Age
    29
    Posts
    652
    Thanks given
    4
    Thanks received
    22
    Rep Power
    200
    You have to use deletethatwall.
    Project 377
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Nov 2008
    Posts
    423
    Thanks given
    19
    Thanks received
    9
    Rep Power
    49
    I dont got a deletethatwall
    Reply With Quote  
     

  4. #4  
    CrotchFruit
    Guest
    public void deletethatwall(int objectX, int objectY) {
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Dec 2006
    Age
    28
    Posts
    2,196
    Thanks given
    5
    Thanks received
    23
    Rep Power
    0
    lol to the above.. you see the ", 10" at the end of the method, that't the type of object, in most sources there is a commented thing like //1-4 wall objects, 5-10 world objects. etc. i can't think of the specific number right now but here:

    Code:
    public void deletethatwall(int objectX, int objectY) { 
    	ReplaceObject2(objectX, objectY, -1, -1, CHANGETHIS);
    	}
    public void Deleteobjects() {
    
    		   deletethatwall(3079, 3507);
    		   deletethatwall(3079, 3506);
    
    }
    you might get an error, i changed something i was unsure about, jsut post if you get errors and change the "CHANGETHIS" to the number you find for wall object
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •