mobilezonez game error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    mobilezonez game error

    hello

    i m using 8ball game from mobilezomez script.

    when i ask any question then,ball do not replying anything.

    anybody please help me in this error

    PHP Code:
    else if($action == "8ball")
    {
         
    addonline(getuid_sid($sid), "Talking to magic ball""");
        
        
         echo 
    "<p align=\"center\"><b><big>The Magic Ball</big></b></p>";
         echo 
    "<p align=\"center\">";
         
    $gid $_POST["gid"];
         
    $un $_POST["un"];
        
         if(
    $gid == "")
        {
            
            echo 
    "<img src=\"images/8ball.jpg\" alt=\"8Ball\"/><br/>";
            echo 
    "<b><u>Magic Ball</u></b><br/>You can ask a question to magic ball and you'll get a reply, so start asking!<br/>";
            echo 
    "<b><i>Question:</i></b><br/>
            <input type=\"hidden\" name=\"text\" value=\"\"/>"
    ;
            echo 
    "<br/>
            <form action=\"games.php?action=8ball&amp;sid=
    $sid\" method=\"post\">";
            echo 
    "<input name=\"text\" id=\"inputText\"/>";
            echo 
    "<br/>";
            echo 
    "<input id=\"inputButton\" type=\"submit\" value=\"Ask\"/>";
            echo 
    "</form>";
            }
            
             
    $xfile = @file("text.txt");
            
    $random_num rand (0count($xfile)-1);
            
    $udata explode("::"$xfile[$random_num]);
           
            echo 
    "<b><u>The ball says</u></b><br/>";
            echo 
    "<b><i>$udata[1]</i></b><br/>";
            
            echo 
    "<br/><br/><a href=\"games.php?action=main&amp;sid=$sid\">«Back to Games</a><br/>";
            echo 
    "</p>";
        
        } 

    #2
    See these lines -

    Code:
    [COLOR=#000000][COLOR=#0000bb]$xfile [/COLOR][COLOR=#007700]= @[/COLOR][COLOR=#0000bb]file[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"text.txt"[/COLOR][COLOR=#007700]); 
            [/COLOR][COLOR=#0000bb]$random_num [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]rand [/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]0[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]count[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$xfile[/COLOR][COLOR=#007700])-[/COLOR][COLOR=#0000bb]1[/COLOR][COLOR=#007700]); 
            [/COLOR][COLOR=#0000bb]$udata [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]explode[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"::"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$xfile[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]$random_num[/COLOR][COLOR=#007700]]);[/COLOR][/COLOR]
    Make sure you have that text.txt file uploaded in the same directory with permissions set to 777. Here is a demo text.txt, you can use and add other things in it if you want.
    Attached Files

    Comment


      #3
      thank you so much rey.

      i didnt uploaded text.txt

      and i did now.

      working fine.

      mwah..........

      Comment

      Working...
      X