Thread: Lottery NPC
View Single Post
  #23  
Old 08-21-2011, 02:00 PM
jamitsu89 jamitsu89 is offline
Registered User
Join Date: Jun 2011
Posts: 27
jamitsu89 is an unknown quantity at this point
Quote:
Originally Posted by Gunderak View Post
no, i havnt tried debugging it. i dont know how to do tasks that advanced.
Gunderak,
In terms of debugging, it's not as complicated as it seems. You simply make things that aren't visible, visible.

ie, in your code you have

PHP Code:
// Add to lottery
    
this.lottery.add(acct); 
For debugging, you could simply add
PHP Code:
// Add to lottery
    
this.lottery.add(acct);
    echo(
this.lottery); 
Then you'll see it in RC. If you echo'd on the clientside, you would need to press F2 to read the output.

That's just one method of debugging, but just remember all you need to do to debug it is produce extra output that you can see, so you can watch how the code is working.
Reply With Quote