Pagina 2 di 3 primaprima 1 2 3 ultimoultimo
Visualizzazione dei risultati da 11 a 20 su 21
  1. #11
    L'ho fatta a due campi..in modo tale da inserire..in uno il nick..nell'altro il codice delle carte

    Poi un'altra cosa questa hand history la prendi da un Database?

    E ancora 1 altra cosa..tutta questa hand history verrebbe incollata nel textarea e da lì convertita??

    Forse avevo capito male in partenza

    Avevo inteso che tu a manina inserivi i dati nel textarea..e volevi che ti spuntava la conversione..

  2. #12
    si esatto io ho la handhistory la incollo TUTTA nella textarea e da li la dovrebbe convertire

  3. #13
    Ah quindi..in quel macello...dovrebbe scovare ad esempio 'Dealing River [2c]' e convertirlo in 'Dealing River [:2c:]'

    Azz...un bel pò complicato..almeno a mio avviso :master: :master:

  4. #14
    ehm si esatto è quello che dovrebbe fare

    puoi provarci?

  5. #15
    Sto cercando di pensare ad un metodo..ma nn mi viene nulla

    Boo..continuo a provarci..in caso mi dispiace

  6. #16
    Una cosa..dopo la conversione..deve ricomparire tutto hand history o solo le stringhe convertite??

  7. #17
    Ora dovrebbe funzionare bene

    Codice PHP:
    <?php
    $text
    =$_POST['testo'];
    $sub=explode("\n",$text);
    $tot=count($sub);
    $i=0;
    while(
    $i<=$tot)
    {
        if(
    ereg("]",$sub[$i]))
        {
            
    $text=$sub[$i];
            
    $pos=strpos($text'[');
            
    $nick=substr($text0$pos);
            
    $sub_text=substr($text,$pos);
            
    $sub_text=str_replace("[","",$sub_text);
            
    $sub_text=str_replace("]","",$sub_text); 
            
    $ex_text=explode(" ",$sub_text);
            
    $tot_ex=count($ex_text);
            
    $j=0;
            while(
    $j<$tot_ex)
            {
                
    $text_fine.= ":".$ex_text[$j].":";
                if(
    $j!=$tot_ex-1)
                
    $text_fine.=" "
                
    $j++;
            }
            
            echo 
    "$nick [$text_fine]
    "
    ;
        }
        else
        echo 
    $sub[$i]."
    "
    ;
        
    $text_fine='';
        
    $i++;
    }
    ?> 
    <form method='POST' name='news'>


    <textarea name='testo' cols='40' rows='6' class='form'></textarea>
    <input type="submit" value="invia" />
    </form>
    Fammi sapere!!

  8. #18
    penso sia perfetto ora lo testo ancora un altro po ;-)

  9. #19
    ho notato un problemino...


    a volte mette uno spazio prima del due punti che segue il seme della carta

    Table #4139173 - Brussels 1
    Starting Hand #202671177
    Last Hand #202669852
    Game Type: Hold\'em
    Limit Type: No Limit
    Table Type: Ring
    Money Type: REAL MONEY
    Blinds are now $1/$2
    Button is at seat 3
    Table #4139173 - Brussels 1
    Starting Hand #202671177
    Last Hand #202669852
    Game Type: Hold\'em
    Limit Type: No Limit
    Table Type: Ring
    Money Type: REAL MONEY
    Blinds are now $1/$2
    Button is at seat 3
    Seat 1: bennythejet - $192
    Seat 2: am1234 - $178.34
    Seat 3: Sandy31 - $200.20
    Seat 4: Beatmee - $200
    Seat 5: Arminius - $335.23
    Seat 6: scual - $72.15
    Moving Button to seat 5
    am1234 says thank you.
    scual posts small blind ($1)
    bennythejet posts big blind ($2)
    Shuffling Deck
    Dealing Cards
    scual: la piscine est chaude
    scual: 1
    am1234 folds
    Sandy31 calls $2
    Sandy31: &
    Arminius calls $2
    Sandy31: 1
    scual calls $2
    bennythejet checks
    Dealing Flop [:3c: :6s: :Td :]
    Sandy31: la mer est froide
    scual checks
    bennythejet checks
    Sandy31 checks
    scual: le nil deborde
    Arminius bets $4
    scual calls $4
    bennythejet folds
    scual laughs his *** off.
    Sandy31 folds
    Dealing Turn [:Qd :]
    Sandy31: le pain est cuit
    scual checks
    Arminius checks
    Dealing River [:2c :]
    scual checks
    Arminius checks
    Taking Rake of $0.80 from pot 1
    Arminius shows [:8c: :Ts :]
    Arminius has One Pair: 10s
    scual mucks
    Arminius wins $15.20 with: One Pair: 10s
    Seat 1: bennythejet - $190
    Seat 2: am1234 - $178.34
    Seat 3: Sandy31 - $198.20
    Seat 4: Beatmee - $200
    Seat 5: Arminius - $344.43
    Seat 6: scual - $66.15
    End Of Hand #202671177

  10. #20
    Si l'ho notato anche io..ma nn riesco a capire dove lo mette...se faccio un controllo sugli elementi dentro le parentesi..non trova nessuno spazio..quindi non posso nemmeno farlo togliere...

    E' un problemone questo??

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.