Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- do
- {
- $strq=$db->query("SELECT turns FROM users WHERE userid={$ir['userid']}");
- $sq=$db->fetch_row($strq);
- if($sq['turns'] < 1)
- {
- die ("<br /><font color=yellow><font size=4><b>You dont have any searches left, come back tomorrow.</b></font></font><br><br></div><div><img src='images/generalinfo_btm.jpg' alt='' /></div><br></div></div></div></div></div>");
- }
- else
- {
- echo "<tr><td>";
- $evr=rand(1,15);
- if ($evr == 1)
- {
- $rand=rand(100,250);
- $gain=($rand*$ir['level']);
- $db->query("UPDATE users SET money=money+$gain,turns=turns-1 WHERE userid={$ir['userid']}");
- echo "<font color=green>You run a fake charity raffle, and gain \${$gain} in ticket sales.</font><br /><br />";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement