26.02.2010, 07:04
Quote:
Originally Posted by [NWA
Hannes ]
Quote:
Use my code, it will work @Babul Btw i suggest using this loop instead of yours as it is faster. pawn Код:
|
Babul was closer than you where. Your code would make countless timers that would add up and add up because you don't kill them in anyway. Also, you set the timer for ship earn that continues. So, if you are not in the area you will still get $$. Babuls was a simple mistake, yours wasn't. Here is the proper code.
pawn Код:
SetTimer("TimerPirateShip",3000,true);
forward TimerPirateShip();
public TimerPirateShip()
{
new ID;
for(ID=0;ID<MAX_PLAYERS;ID++)
{
if(IsPlayerInRangeOfPoint(ID, 20.0, 2000.6755,1543.2694,13.5859))
{
GivePlayerMoney(ID,50);
}
}
}