04-24-2008, 02:19 PM
(04-24-2008, 11:03 AM)Smoke link Wrote: did you putYes i did,
SetTimer("TaxUpdater", 180000, 1);
under OnGameModeInit??
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.");
}
}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.Grtz and thnx,
Dimplex