User Profile

Collapse

Profile Sidebar

Collapse
Stuart James
Stuart James
Last Activity: Nov 11 '10, 03:06 AM
Joined: Nov 11 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Stuart James
    replied to NameError: x
    Fixed it myself! Completely new to Python...
    See more | Go to post

    Leave a comment:


  • Stuart James
    started a topic NameError: x

    NameError: x

    This problem is occurring in Jython:

    Code:
    File "<iostream>", line 0, in execute
    NameError: x
    Code:
    class test(cycleevent):
    	x = 100
    	def execute(a, b):
    		global x
    		x -= 1
    		player.sendMessage("testing....")
    		if x == 0:
    			b.stop()
    def stop(a):
    	return
    Why is it throwing this? cycleevent being a Java abstract...
    See more | Go to post
No activity results to display
Show More
Working...