Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.67 KB | None | 0 0
  1. do
  2. {
  3. $strq=$db->query("SELECT turns FROM users WHERE userid={$ir['userid']}");
  4. $sq=$db->fetch_row($strq);
  5. if($sq['turns'] < 1)
  6. {
  7. 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>");
  8. }
  9. else
  10. {
  11. echo "<tr><td>";
  12. $evr=rand(1,15);
  13. if ($evr == 1)
  14. {
  15. $rand=rand(100,250);
  16. $gain=($rand*$ir['level']);
  17. $db->query("UPDATE users SET money=money+$gain,turns=turns-1 WHERE userid={$ir['userid']}");
  18. 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