Thread: Need help [pi]

Results 1 to 10 of 10
  1. #1 Need help [pi] 
    Member
    Join Date
    Apr 2011
    Posts
    144
    Thanks given
    18
    Thanks received
    7
    Rep Power
    0


    how do i set player as variable p? :\
    Reply With Quote  
     

  2. #2  
    Trap God

    Join Date
    Jun 2010
    Age
    28
    Posts
    570
    Thanks given
    27
    Thanks received
    26
    Rep Power
    4
    i beleive u have to declare it. in actionhandler.java or player.java idk i dont know what your trying to do.
    Reply With Quote  
     

  3. #3  
    Member
    Join Date
    Apr 2011
    Posts
    144
    Thanks given
    18
    Thanks received
    7
    Rep Power
    0
    i know i have to declare it.. lol
    i'm asking how not why.
    and i'm making a minigame. i'd give you the code but i don't want my garbage coding released.
    Reply With Quote  
     

  4. #4  
    Trap God

    Join Date
    Jun 2010
    Age
    28
    Posts
    570
    Thanks given
    27
    Thanks received
    26
    Rep Power
    4
    u might not have to declare it try to do c. instead of p.
    Reply With Quote  
     

  5. #5  
    Zaros Developer

    Nomac's Avatar
    Join Date
    Feb 2011
    Age
    29
    Posts
    1,068
    Thanks given
    318
    Thanks received
    200
    Rep Power
    1092
    Code:
    public ClassName(Player Player) {
    		this.p = Player;
    	}
    	
    	public Player p;
    Attached image


    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Mar 2011
    Posts
    521
    Thanks given
    2
    Thanks received
    30
    Rep Power
    0
    Code:
    public ClassName(Player Player) {
    		this.c = Player;
    	}
    	
    	public Player c;
    Reply With Quote  
     

  7. #7  
    #packeting

    God's Avatar
    Join Date
    Feb 2011
    Posts
    1,007
    Thanks given
    315
    Thanks received
    115
    Rep Power
    181
    Ya, if your attempting to call it from the Player class, just use the variable C. instead of P.

    BAMAN strikes again.




    LOL^

    [Today 12:51 AM] Stewie: If at first you don't succeed, you probably just realized you're a woman.

    ...oh stewie
    Reply With Quote  
     

  8. #8  
    Member
    Join Date
    Apr 2011
    Posts
    144
    Thanks given
    18
    Thanks received
    7
    Rep Power
    0
    thanks.
    tampon.
    you play dustscape.

    BATMAN, i have variable c set for the client.
    Reply With Quote  
     

  9. #9  
    Zaros Developer

    Nomac's Avatar
    Join Date
    Feb 2011
    Age
    29
    Posts
    1,068
    Thanks given
    318
    Thanks received
    200
    Rep Power
    1092
    You're Welcome.
    Attached image


    Reply With Quote  
     

  10. #10  
    Member
    Join Date
    Apr 2011
    Posts
    144
    Thanks given
    18
    Thanks received
    7
    Rep Power
    0
    ty babe.
    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
  •