View Single Post
  #21  
Old 01-28-2008, 11:50 AM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
Quote:
Originally Posted by Inverness View Post
I never said anything about using thisr. in the with block, which obviously wouldn't be allowed. I think thats bad form anyhow. It would be better to use Twinny's suggestion and have the this.private. section of the object for private variables.
Or, like in C++ Classes, being able to define the private and public variables like so:

PHP Code:
public:
char ani;
char name[20];

private:
int health;
float xy
Reply With Quote