Hello There, Guest! Login or Register


Public function, taxupdater
#9
(04-24-2008, 11:03 AM)Smoke link Wrote: did you put


SetTimer("TaxUpdater", 180000, 1);

under OnGameModeInit??
Yes i did,
Now i changed it whit the help of zodiac.
Now it is this:
Code:
public TaxUpdater(playerid)
{
    for(new i=0;i<MAX_PLAYERS;i++)
    {
    SetTimerEx("TaxUpdater", 180000, 1,"i",i);
        }
        if(GetPlayerMoney(i) > 3000000)
                    {
             GivePlayerMoney(i,-100000);
             SendClientMessage(i, COLOR_GREEN,"You payed 100000 tax.");
             }

}
And i disabeled the old timer.
But now he gives this errors,
Code:
D:\Scripting\GTA SA Samp\gamemodes\SecondLife.pwn(450) : error 017: undefined symbol "i"
D:\Scripting\GTA SA Samp\gamemodes\SecondLife.pwn(452) : error 017: undefined symbol "i"
D:\Scripting\GTA SA Samp\gamemodes\SecondLife.pwn(453) : error 017: undefined symbol "i"
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
What must supose to do?
Grtz and thnx,
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