Jump to content
MakeWebGames

Recommended Posts

Posted

Just edit the cron day file.

Edit the original query, and add a where clause, so donatordays = 0

Then copy that query, change the amout of itrest to 0.04, then change the where clause to donatordays > 0

  • Like 1
Posted

That's done through your cron day. The basics of it would be :

 

if($ir['donatordays']){
   $var = usersbank/100 * 4;
   $db->query("UPDATE `users` SET `bank` = bank + $var ");
}else{
   $var = usersbank/100*2;
    $db->query("UPDATE `users` SET `bank` = bank + $var ");

}

 

NOTE: that wont work. That gives you all the basic principles you need for your system, have a shot at making it work and if you still can't I will help you out further

  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...