Help "Syntax error"
#1

Fixed
Reply
#2

Where did you call KillTimer? Or FLIGHT_TO_LV and others are publics?
Reply
#3

FIXED.
Reply
#4

hello friend learn to use KillTimer
Reply
#5

i don't understand it :S .. can you show me?
Reply
#6

pawn Код:
new timer1;
public OnGameModeInit()
{
    print("Starting timer...");
    timer1 = SetTimer("message", 1000, true);
}
 
forward message();
public message()
{
    if(some_condition)
    {
        KillTimer(timer1);
    }
    else
    {
        print("1 second has passed");
    }
}
Reply
#7

Quote:
Originally Posted by cesar_******
Посмотреть сообщение
pawn Код:
new timer1;
public OnGameModeInit()
{
    print("Starting timer...");
    timer1 = SetTimer("message", 1000, true);
}
 
forward message();
public message()
{
    if(some_condition)
    {
        KillTimer(timer1);
    }
    else
    {
        print("1 second has passed");
    }
}
i saw that on samp wiki but i want to know how to kill multiple timers in one command?
Reply
#8

FIXED
Reply
#9

EXAMPLE:

pawn Код:
new Time[4]; // in this case 4 times

/// any CallBack

Time[0] = SetTimer("FunctionA", 1000, true);
Time[1] = SetTimer("FunctionB", 1000, true);
Time[2] = SetTimer("FunctionC", 1000, true);
Time[3] = SetTimer("FunctionD", 1000, true);

/// any CallBack
for( new i; i < Time; i++)
{
KillTimer( Time[i] );
}
Reply
#10

thanks..
i can do this also?
pawn Код:
new T1;
new T2;
new T3;
new T4;


T1 = SetTimer("FunctionA", 1000, true);
T2 = SetTimer("FunctionB", 1000, true);
T3 = SetTimer("FunctionC", 1000, true);
T4 = SetTimer("FunctionD", 1000, true);


// in command?
KillTimer(T1);
KillTimer(T2);
KillTimer(T3);
KillTimer(T4);
asking for information..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)