Problem with timer
#1

Hi!


I tired to make a timer but I get a error, I want it to give money when it pass 0

pawn Код:
public robc()  //(robc is my timer name...)
{
    GivePlayerMoney(playerid,9000);
}
But I get error:

Код:
C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV.pwn(847) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
(At that line)

The rest of the code:

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    SetTimer("robc",5000,false);
    return 1;
}
When the timer will start..

And on top of my script (forward)

pawn Код:
forward robc();
I had almost the same but on a filterscript but then I had so the timer started by a command
and it got a explode... And that workt with that...

Edit: Maybe it not work under there ?.. But I need it when it pass 0...
Reply


Messages In This Thread
Problem with timer - by davve95 - 09.11.2012, 16:40
Re: Problem with timer - by doreto - 09.11.2012, 17:08
Re: Problem with timer - by Glad2BeHere - 09.11.2012, 17:08
Re: Problem with timer - by Glad2BeHere - 09.11.2012, 17:12
Re: Problem with timer - by davve95 - 09.11.2012, 18:11

Forum Jump:


Users browsing this thread: 1 Guest(s)