/plantweed timer
#1

http://pastebin.com/zrg3qRVS


How can I possibly add a forward to the timer "CookPlant" which gives 2 grams each minute and maximum is 20 grams (10 minutes)?
Reply
#2

pawn Код:
new executions;
new MyTimer;

forward CookPlant(str[],int,Float:var);

public CookPlant(str[],int,Float:var)
{
    printf("You've passed to me: %s %d %i",str,int,var);

    Executions ++;

    if(Executions >= 20)
        KillTimer(MyTimer);

    return 1;
}
pawn Код:
// Executions = 0;
// MyTimer = SetTimerEx("CookPlant",60000,true,"sdf","A TEXT!",1000,10.5");
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)