Vai al contenuto


Foto

Help Gioco JAVA


Questa discussione e' stata archiviata Questo significa che non e' possibile rispondere
48 risposte a questa discussione

#21 p.nightmare

p.nightmare

    Dittatore

  • Amministratori
  • 97.700 Messaggi:

Inviato 27 settembre 2012 - 14:12

anche la cipolla

No real limits of any kind apply here - not even the sky
è diventato un tutt'uno con lo spazio...
PVoutput


#22 Nex

Nex

    Schiavo

  • Membri
  • StellettaStellettaStellettaStellettaStellettaStellettaStelletta
  • 19.500 Messaggi:

Inviato 27 settembre 2012 - 14:19

Compila XD è un errore a run-tine ..e cmq l'avv capito che è un errore di confronto ..ma cm si risolve ?? vi ho messo anche la linea da dv parte l'errore XD


Questo scrive così e voi gli rispondete pure?

:chan:

Uscite subito dal DS...
Then I went to my pretty rose tree / To tend her by day and by night / But my rose turned away with jealousy / And her thorns were my only delight...

#23 yorkeiser

yorkeiser

    Schiavo

  • Membri
  • StellettaStellettaStellettaStellettaStellettaStellettaStellettaStelletta
  • 68.781 Messaggi:

Inviato 27 settembre 2012 - 14:49

non è una regola, ma per esperienza in C, C++, Java, C#, ruby, php, è così


Verificato, hai ragione, anche se mi sembra di ricordare di qualche arcaico compilatore c che risolvesse da destra... ma forse mi confondo, o forse non faceva proprio short-circuit evaluation.
Di sicuro per esperienza sta roba non funge invece in VB, non so però se risolve prima a destra o non fa proprio SCE.

Il sole è giallo

Brava Giovanna, brava

E canto please don't let me be misunderstood mentre parcheggio nel parcheggio l'alfasud


#24 Miky_Many

Miky_Many

    Schiavo Newfag

  • Membri
  • Stelletta
  • 7 Messaggi:

Inviato 27 settembre 2012 - 16:31

Grazie yorkeiser per la risposta quindi va sostituita con le 2 linee che mi hai detto tu giusto ??
e comunque caro Nex o come cavolo ti chiami , io scrivo come voglio e non rompere le palle...se non sei in grado di dare una risposta non sporcare il mio 3d mi sembri un bimbo ...bye bye....

Messaggio modificato da Miky_Many il 27 settembre 2012 - 16:43


#25 Nex

Nex

    Schiavo

  • Membri
  • StellettaStellettaStellettaStellettaStellettaStellettaStelletta
  • 19.500 Messaggi:

Inviato 27 settembre 2012 - 16:32

Scusa.
Then I went to my pretty rose tree / To tend her by day and by night / But my rose turned away with jealousy / And her thorns were my only delight...

#26 p.nightmare

p.nightmare

    Dittatore

  • Amministratori
  • 97.700 Messaggi:

Inviato 27 settembre 2012 - 16:33

Porco dio :asd:

No real limits of any kind apply here - not even the sky
è diventato un tutt'uno con lo spazio...
PVoutput


#27 yorkeiser

yorkeiser

    Schiavo

  • Membri
  • StellettaStellettaStellettaStellettaStellettaStellettaStellettaStelletta
  • 68.781 Messaggi:

Inviato 27 settembre 2012 - 16:35

Non c'è di che, torna quando vuoi, noi cerchiamo sempre nuovi amici :wink:
Nex finiscila di sporcare i thread, ci vuole più rispetto :trollface:

Il sole è giallo

Brava Giovanna, brava

E canto please don't let me be misunderstood mentre parcheggio nel parcheggio l'alfasud


#28 matti157

matti157

    Schiavo

  • GRULLINO
  • 15.041 Messaggi:

Inviato 27 settembre 2012 - 16:42

Grazie yorkeiser per la risposta quindi va sostituita con le 2 linee che mi hai detto tu giusto ??
e comunque caro Nex o come cavolo ti chiami , io scrivo come voglio e non rompere le palle...se non sei in grado di dare una risposta non sporcare il mio 3d mi sembri un bimbi ...bye bye....


nex cazzo :vabe:

Immagine inserita
Cooler Master 690|Intel Core i7 920 @3.7Ghz|Gigabyte GTX 770 OC|12GB Corsair DDR3 1600|Noctua NH-U12P|Corsair TX550

 

 

Un giorno ho visto per strada un tizio barcollante , sporco, pieno di chiazze verdi e pus, infastidiva bambine e rubava i soldi alle vecchiette: era uno che postava nel DS.


ก็็็็็็็็็็็็็็็็็็็็ กิิิิิิิิิิิิิิิิิิิิ ก้้้้้้้้้้้้้้้้้้้้ก็็็็็็็็็็็็็็็็็็็็ กิิิิิิิิิิิิิิิิิิิิ ก้้้้้้้้้้้้้้้้้้้้ก็็็็็็็็็็็็็็็็็็็็ กิิิิิิิิิิิิิิิิิิิิ ก้้้้้้้้้้้้้้้้้้้้ก็็็็็็็็็็็็็็็็็็็็ กิิิิิิิิิิิิิิิิิิิิ ก้้้้้้้้้้้้้้้้้้้้ก็็็็็็็็็็็็็็็็็็็็ กิิิิิิิิิิิิิิิิิิิิ ก้้้้้้้้้้้้้้้้้้้้ก็็็็็็็็็็็็็็็็็็็็ กิิิิิิิิิิิิิิิิิิิิ ก้้้้้้้้้้้้้้้้้้้้ก็็็็็็็็็็็็็็็็็็็็ กิิิิิิิิิิิิิิิิิิิิ ก้้้้้้้้้้้้้้้้้้้้


#29 Nex

Nex

    Schiavo

  • Membri
  • StellettaStellettaStellettaStellettaStellettaStellettaStelletta
  • 19.500 Messaggi:

Inviato 27 settembre 2012 - 16:43

Effettivamente dicono che ho successo con le donne...
Then I went to my pretty rose tree / To tend her by day and by night / But my rose turned away with jealousy / And her thorns were my only delight...

#30 rgart

rgart

    Troia Succhiacazzi Transessuale

  • Membri
  • StellettaStellettaStellettaStellettaStellettaStellettaStelletta
  • 24.186 Messaggi:

Inviato 27 settembre 2012 - 16:43

:uah:

A piece of advice:
/b/ : /b/ros = /ds/ : retar/ds/

598860.png


#31 Miky_Many

Miky_Many

    Schiavo Newfag

  • Membri
  • Stelletta
  • 7 Messaggi:

Inviato 27 settembre 2012 - 16:44

yorke l'errore non me lo da più , ma il problema è che ora non funziona perchè mi fa selezionare anche le carte gia cliccate ..premetto è il gioco del Memory ...

#32 Nex

Nex

    Schiavo

  • Membri
  • StellettaStellettaStellettaStellettaStellettaStellettaStelletta
  • 19.500 Messaggi:

Inviato 27 settembre 2012 - 16:45

"già", non "gia".

"premetto che si tratta del", non "premetto è il".


Then I went to my pretty rose tree / To tend her by day and by night / But my rose turned away with jealousy / And her thorns were my only delight...

#33 Miky_Many

Miky_Many

    Schiavo Newfag

  • Membri
  • Stelletta
  • 7 Messaggi:

Inviato 27 settembre 2012 - 16:46

e non rompe il cazzo ...

#34 Nex

Nex

    Schiavo

  • Membri
  • StellettaStellettaStellettaStellettaStellettaStellettaStelletta
  • 19.500 Messaggi:

Inviato 27 settembre 2012 - 16:47

"rompere", non "rompe".
Then I went to my pretty rose tree / To tend her by day and by night / But my rose turned away with jealousy / And her thorns were my only delight...

#35 Miky_Many

Miky_Many

    Schiavo Newfag

  • Membri
  • Stelletta
  • 7 Messaggi:

Inviato 27 settembre 2012 - 16:48

ù.ù

#36 yorkeiser

yorkeiser

    Schiavo

  • Membri
  • StellettaStellettaStellettaStellettaStellettaStellettaStellettaStelletta
  • 68.781 Messaggi:

Inviato 27 settembre 2012 - 16:49

Magari intendeva una terza persona :asd:

Miky_Many ma come pretendi che da UNA riga di codice si possa capire perchè un intero programma non ti funziona? :asd:

Il sole è giallo

Brava Giovanna, brava

E canto please don't let me be misunderstood mentre parcheggio nel parcheggio l'alfasud


#37 yorkeiser

yorkeiser

    Schiavo

  • Membri
  • StellettaStellettaStellettaStellettaStellettaStellettaStellettaStelletta
  • 68.781 Messaggi:

Inviato 27 settembre 2012 - 16:49

In b4 "funzioni", non "funziona"

Il sole è giallo

Brava Giovanna, brava

E canto please don't let me be misunderstood mentre parcheggio nel parcheggio l'alfasud


#38 TigerShark

TigerShark

    Schiavo

  • Membri
  • StellettaStellettaStellettaStellettaStellettaStellettaStelletta
  • 16.685 Messaggi:

Inviato 27 settembre 2012 - 16:50

Il problema è che una delle dur carte x qualche motivo è null e non entra nell'if.
Cmq vedo che ami le parentesi, quell'if può essere scritto totalmente senza parentesi x via dello short-circuit e della precedenza a sinistra dell'operatore &&
Mettiti in debuggable su quell'if e vedi quale delle due è null e il gioco è fatto.
I must not fear. Fear is the mind-killer. Fear is the little-death that brings total obliteration. I will face my fear. I will permit it to pass over me and through me. And when it has gone past I will turn the inner eye to see its path. Where the fear has gone there will be nothing. Only I will remain.

#39 p.nightmare

p.nightmare

    Dittatore

  • Amministratori
  • 97.700 Messaggi:

Inviato 27 settembre 2012 - 16:53

e non rompe il cazzo ...

Che cazzo segnali? :asd:

No real limits of any kind apply here - not even the sky
è diventato un tutt'uno con lo spazio...
PVoutput


#40 Miky_Many

Miky_Many

    Schiavo Newfag

  • Membri
  • Stelletta
  • 7 Messaggi:

Inviato 27 settembre 2012 - 16:54

si ho trovato l'errore credo XD...mi da un altro null pointer exception ...su questa linea

if (firtsFrontCard.getId() == secondFrontCard.getId())

probabilmente devo inserirlo nell'altro if dove controllo se sono nulli o meno ??giusto ??