Hello There, Guest! Login or Register


Public function, taxupdater
#1
Hey all,

I need some help whit a public function i made.
This is the idea, If you have over the 3mil, you pay every 2 min 100000.
Now i made this:
Code:
forward TaxUpdater();
The public function:
Code:
public TaxUpdater()
{
     for(new i=0; i<MAX_PLAYERS; i++)
         {
        if(GetPlayerMoney(i) > 3000000)
                    {
             GivePlayerMoney(i,-100000);
             SendClientMessage(i, COLOR_GREEN,"You payed 100000 tax.");
             }
         }
}
and a timer:
Code:
    SetTimer("TaxUpdater", 180000, 1);
But if i have more than 3 mil, he dont get 100000 of my money.
How i must fix this?

Grtz Dimplex
Reply


Messages In This Thread
Public function, taxupdater - by Dimplex - 04-22-2008, 04:02 PM
Re: Public function, taxupdater - by Jay - 04-22-2008, 04:58 PM
Re: Public function, taxupdater - by Dimplex - 04-22-2008, 05:28 PM
Re: Public function, taxupdater - by Xanland - 04-22-2008, 05:54 PM
Re: Public function, taxupdater - by Jay - 04-22-2008, 08:54 PM
Re: Public function, taxupdater - by The_Zodiac - 04-23-2008, 01:50 AM
Re: Public function, taxupdater - by Jay - 04-23-2008, 04:57 PM
Re: Public function, taxupdater - by Smoke - 04-24-2008, 11:03 AM
Re: Public function, taxupdater - by Dimplex - 04-24-2008, 02:19 PM
Re: Public function, taxupdater - by Joeri - 04-24-2008, 03:20 PM