You don't need frames to view this website. Flash communication server. Flash mx xml socket server.
Home
Main Menu
Home
- - - - - - -
What is Palabre ?
Features
News
FAQ
Forum
DEMO
- - - - - - -
Downloads !
Browse SVN
- - - - - - -
Search
Contact Us
- - - - - - -
Sourceforge Project Page
Python
Links
Palabre on Facebook






Actionscript for Multiplayer games
 
Download Palabre Flash Xml Socket Server DOWNLOAD Download Palabre Flash Xml Socket Server FORUM Download Palabre Flash Xml Socket Server FAQ Download Palabre Flash Xml Socket Server WHAT IS IT
 



Using Palabre ? Coming here for Support ? Please consider making an (even small) donation :)
Palabre Forum  


::post new topic::
variables in server - 2009/02/18 02:27 hello, it is my module test:

Code:

  class test:          numero=1     def __init__(self,server):                          self.server server                  self.name "test"                           self.server.registerNode('sum',self.name)                  return              def doNode(self,nodeName,node,client):                  if nodeName == 'sum':                          numero=numero+1             client.clientSendMessage(self.server.formatMessage('hello',[],you number is'+str(numero)))                                   return



The users call this function and variable "numero" increment, but I have the error, the error is "global name "numero" is not defined". how I can repair this problem?


else, how I can compile a .exe?
  reply | quote
Re:variables in server - 2009/03/15 13:40 I guess you should use not just
Code:

 numero


but
Code:

 self.numero

  reply | quote
Re:variables in server - 2009/03/15 13:45 You should get something like this:

Code:

  class test:          numero=1     def __init__(selfserver):                          self.server server                 self.name "test"         self.server.registerNode('sum',self.name)                  return              def doNode(selfnodeNamenodeclient):                  if nodeName == 'sum':                         self.numero self.numero 1             msg self.server.formatMessage('hello', [], you number is' + str(self.numero))             client.clientSendMessage(msg)                              return

  reply | quote
Re:variables in server - 2009/03/23 20:08 teank you :D, I now use the free code or code base, palabre is fantastic!! :)

Byee bye
  reply | quote
::post new topic::
SORRY, website is currently mostly broken due to software changes on the server.
Hope to fix it soon ...

In the meantime you may still download palabre or use the forum