04-22-2008, 04:02 PM
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:
The public function:
and a timer:
But if i have more than 3 mil, he dont get 100000 of my money.
How i must fix this?
Grtz Dimplex
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();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.");
}
}
}Code:
SetTimer("TaxUpdater", 180000, 1);How i must fix this?
Grtz Dimplex