<!--#include file="../inc.asp"-->
<!--#include file="../ydzq.asp"-->
<%call say()
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>5 then 
  Call Error("数字无效！必须1-5中的数字")
  end if
Function RndNumber(Min,Max) 
Randomize 
RndNumber=Int((Max - Min + 1) * Rnd() + Min) 
End Function 
dx=RndNumber(1,5)
jb=clng(num*5)
if clng(dx)=clng(num1) then 
response.write "<img src='a2.gif' alt='床位'/><br/>"

       conn.Execute("update users set myjb=myjb+"&jb&" where id="&myid)

response.write "终于抢到床位了！<br/>"
response.write "如雨在"&dx&"号包房<br/>你推开门，躺在床上...真舒服，免费按摩还得了"&jb&""&getcent&"<br/>"
else
response.write "如雨在:"&dx&"号包房<br/>"
response.write "您来到了"&num1&"号包房<br/>"
response.write "很可惜，如雨不在这个包房！<br/>害得你花了:"&num&getcent&"！去别的房间看看吧...<br/>"
       conn.Execute("update users set myjb=myjb-"&num&" where id="&myid)
end if
response.write "--------<br/>"
Response.write "<a href=""am.asp?sid="&sid&"&amp;saytk="&saytk&""">我要再去别的房间看看</a>"
Response.write "<br/><a href=""../game/index.asp?sid="&sid&"&amp;saytk="&saytk&""">返回游乐城中心</a><br/>"
Response.write "<a href=""../show.asp?sid="&sid&"&amp;saytk="&saytk&""">空间</a>&gt;&gt;<a href=""/bbs/index.asp?sid="&sid&"&amp;saytk="&saytk&""">社区</a>>>"
Response.write "<a href=""/index.asp?sid="&sid&"&amp;saytk="&saytk&""">首页</a><br/>(c) "&Request.ServerVariables("SERVER_NAME")&"["&String(2-Len(hour(now)),"0") & hour(now) &":"&String(2-len(minute(now)),"0") & minute(now)&"]"
Call headsay()
%>