Still continues the timer?
#1

Solved
Reply
#2

pawn Код:
new ZombiePicked = 0 ;

if(ZombiePicked == 0)
{
    SetTimer("FirstZombieX1",3000,true);
    ZombiePicked = 1;
}
if(ZombiePicked == 1 )
{
    printf("First Zombie Already picked debug");
}

TRUE = continue timer.
FALSE = One turn.
Reply
#3

Solved
Reply
#4

pawn Код:
new ZombiePicked = 0 ;

if(ZombiePicked == 0)
{
    SetTimer("FirstZombieX1",3000,true);
    ZombiePicked = 1;
    return false;
}
if(ZombiePicked == 1 )
{
    printf("First Zombie Already picked debug");
    return false;
}
Reply
#5

Solved
Reply
#6

pawn Код:
new ZombiePicked = 0 ;

if(ZombiePicked == 0)
{
    SetTimer("FirstZombieX1",3000,true);
    print("loading");
    ZombiePicked = 1;
    return false;
}
if(ZombiePicked == 1 )
{
    printf("First Zombie Already picked debug");
    return false;
}
Or

pawn Код:
if(ZombiePicked == 0)
{
    SetTimer("FirstZombieX1",3000,true);
    print("loading");
    ZombiePicked = 1;
    return false;
}
if(ZombiePicked == 1 )
{
    printf("First Zombie Already picked debug");
    ZombiePicked --;
    return false;
}
Reply
#7

make
pawn Код:
ZombiePicked = 0;
on ur map change code
Reply
#8

declare this at the top of your script not in the function
pawn Код:
new ZombiePicked = 0;
because each time the function runs it is recreated as 0 hence the timer allways running
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)