Ir para baixo
Ulalaguga
Ulalaguga
MEMBRO

MEMBRO
Mensagens : 46
Data de inscrição : 02/09/2016
Idade : 34
Localização : Rio De Janeiro
http://miceula.esy.es

Tirar o bug do tempo 327.67 Empty Tirar o bug do tempo 327.67

Sáb Set 10, 2016 6:36 pm
Vocês podem me ajudar com o erro do tempo 327.67 ?
Eu até achei o local se eu não me engano

def sendPlayerGotCheese(self, playerCode, score, place, timeTaken):
if self.hasCheese:
self.hasEnter = True
if timeTaken > 32767:
timeTaken = 32767
if place > 128:
place = 127
p = self.parseByte.ByteArray()
p.writeByte(self.getCheeseForTeam(playerCode))
p.writeInt(playerCode)
p.writeShort(score)
p.writeByte(place)
p.writeShort(timeTaken)
self.room.sendAllBin('\x08\x06', p.toString())
self.hasCheese = False

Vocês podem me ajudar nisso ?? Obs : Source 1.316 !


Última edição por Ulalaguga em Sáb Set 10, 2016 10:47 pm, editado 1 vez(es) (Motivo da edição : Se preciso até pago.)
Ulalaguga
Ulalaguga
MEMBRO

MEMBRO
Mensagens : 46
Data de inscrição : 02/09/2016
Idade : 34
Localização : Rio De Janeiro
http://miceula.esy.es

Tirar o bug do tempo 327.67 Empty Re: Tirar o bug do tempo 327.67

Sáb Set 10, 2016 11:10 pm
Por favor me ajudem

O autor desta mensagem foi banido do fórum - Mostrar mensagem

Ulalaguga
Ulalaguga
MEMBRO

MEMBRO
Mensagens : 46
Data de inscrição : 02/09/2016
Idade : 34
Localização : Rio De Janeiro
http://miceula.esy.es

Tirar o bug do tempo 327.67 Empty Re: Tirar o bug do tempo 327.67

Dom Set 11, 2016 12:18 am
Fakytfm escreveu:
Ulalaguga escreveu:Por favor me ajudem
Acho que isso Funciona
Código:

def sendPlayerGotCheese(self, playerCode, score, place, timeTaken):
        if self.hasCheese:
                self.hasEnter = True
        if timeTaken > 32767:
                timeTaken = 32767
        if place > 128:
                place = 127            
        p = self.parseByte.ByteArray()
        p.writeByte(self.getCheeseForTeam(playerCode))
        p.writeInt(playerCode)
        p.writeShort(score)
        p.writeByte(place)
        p.writeShort(timeTaken)
        ('\x08\x06', p.toString())
        self.hasCheese = False
Não funcionou
Nizant
Nizant
MEMBRO

MEMBRO
Mensagens : 66
Data de inscrição : 06/03/2016
Idade : 21

Tirar o bug do tempo 327.67 Empty Re: Tirar o bug do tempo 327.67

Dom Set 11, 2016 2:12 am
procura por def playerWin procura a linha
timeTaken = int((thetime.time() - (self.playerStartTimeMillis if self.room.autoRespawn else self.room.gameStartTimeMillis)) * 100)

e apaga ela
Conteúdo patrocinado

Tirar o bug do tempo 327.67 Empty Re: Tirar o bug do tempo 327.67

Ir para o topo
Permissões neste sub-fórum
Não podes responder a tópicos