<!--#include file="../inc.asp"-->
<!--#include file="../ydzq.asp"-->
<%Call head()
Call saycarda("砸蛋结果")

dim num,num1,jb,dx
num=Request("num")
num1=Request("num1")
if num="" or num=<0 or IsNumeric(num)=False then
  Call Error("押金无效！")
  end if
num=clng(num)
if num>999999 then 
  Call Error("押金最高999999,大赌伤身呀！")
  end if
if myjb<num then

  Call Error("呵呵！你的"&getcent&"不够啊！")
  end if

if num1<1 or num1>8 then 
  Call Error("数字无效！必须1-16中的数字")
  end if
Function RndNumber(Min,Max) 
Randomize 
RndNumber=Int((Max - Min + 1) * Rnd() + Min) 
End Function 
dx=RndNumber(1,8)
jb=clng(num*8)
if clng(dx)=clng(num1) then 
response.write "<img src='img/Win.gif' alt='中奖啦'/><br/>"

       conn.Execute("update users set myjb=myjb+"&jb&" where id="&myid)
if myid<>0 then
mz="[url=/bbs/uinfo.asp?id="&myid&"&amp;sid=[sid]]"&myni&"[/url]"
else
mz="游客"
end if
conn.execute("insert into sqdt(shijian,dz)values('"&now&"','"&mz&"在(url=/bbs/game/zadan.asp?sid=[sid])砸金蛋(/url)游戏中获得"&jb&"个"&getcent&"')")
response.write "哇噻~眼前一片金光四射！恭喜您砸到金蛋啦！<br/>"
response.write "本次奖金:"&jb&"<br/>"
else
if myid<>0 then
mz="[url=/bbs/uinfo.asp?id="&myid&"&amp;sid=[sid]]"&myni&"[/url]"
else
mz="游客"
end if
conn.execute("insert into sqdt(shijian,dz)values('"&now&"','"&mz&"在(url=/bbs/game/zadan.asp?sid=[sid])砸金蛋(/url)游戏中砸到一堆粪土')")
response.write "<img src='fentu.gif' alt='粪土'/>很遗憾，您砸到了一堆粪土！扣除血本:"&num&getcent&"别灰心！下次金蛋就是您的了！<br/>"
       conn.Execute("update users set myjb=myjb-"&num&" where id="&myid)
end if
response.write "--------<br/>"
Response.write "<a href=""zadan.asp?sid="&sid&"&amp;saytk="&saytk&""">继续砸蛋</a>"
Response.write "<br/><a href=""index.asp?sid="&sid&"&amp;saytk="&saytk&""">返回娱乐游戏中心</a><br/>"%>
<!--#include file="fanhui.asp"-->
<%Call headsay()
%>