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::
Re:order client in room - 2009/04/01 18:00 teank you, I found solution.

I identity each clients with a number increment

in "palabreServer"


Code:

  self.idClients 0




in "PalabreClient.py"

Code:

  self.id self.server.idClients self.server.idClients += 1



in "PalabreServer" in Method "sendInfoToClient(self,attrs)"

Code:

  def sendInfoToClient(self,attrs):         """         envia informacion especifica al solicitante         """         #Si la informacion solicitada es de tipo "Jugadores en una partida" procedo         if attrs['type'] == "players":             liste "<info type='players' players='%i'>" len(self.server.allNickNames)             armado False             idMenor = -1             idMayor 1000000             currentClient None;                          while armado == False:                 idMayor 1000000                                  for q in self.server.allNickNames.values():                             if q.isClientInRoom(attrs['heading']):                         if q.id idMenor and q.id idMayor:                             idMayor q.id                             currentClient q                                          idMenor idMayor                                                  if idMayor != 1000000:                         liste +=  "   <player name='%s' pais='%s' />" % (str(currentClient.nickName), str(currentClient.pais))                 else:                     armado True                          liste += "</info>"             self.clientSendMessage(msg=liste)



I sorted of minor to major.

which is the major Number than can enter in variable numeric? I put 1000000

teank you! bye bye
  reply | quote

      Topics Author Date
    emo
order client in room
wawi 2009/03/27 18:41
    thread link
thread linkthread link Re:order client in room
celio 2009/03/29 16:29
    thread link
thread linkthread link Re:order client in room
wawi 2009/04/01 17:56
    thread link
thread linkthread linkthread link Re:order client in room
wawi 2009/04/01 18:00
::post new topic::