[Help] SetTimerEx
#14

Test filterscript:

Wrong:
pawn Код:
#include <a_samp>

public OnFilterScriptInit() { SetTimer("test", 60, true); return 1; }

forward test();public test() {
    new
        vhp = random(800)+200;
    if(vhp < 700)
    {
        printf("true  vhp: %d", vhp);
    }
    else if(vhp < 540)
    {
        printf("No Callback funkcion true (else if) vhp: %d", vhp);
    }
}
Correct:
pawn Код:
#include <a_samp>

public OnFilterScriptInit() { SetTimer("test", 600, true); return 1; }

forward test();public test()
{
    new
        vhp = random(800)+200;
    if(vhp < 540)
    {
        printf("Your car health is now under 540. VehicleHealth: %d", vhp);
    }
    else if(vhp < 700)
    {
        printf("Your car health is now under 700. VehicleHealth: %d", vhp);
    }
}
Reply


Messages In This Thread
[Help] SetTimerEx - by Niixie - 24.02.2010, 17:30
Re: [Help] SetTimerEx - by BlackFoX - 24.02.2010, 17:33
Re: [Help] SetTimerEx - by Niixie - 24.02.2010, 18:22
Re: [Help] SetTimerEx - by BlackFoX - 24.02.2010, 18:32
Re: [Help] SetTimerEx - by Niixie - 24.02.2010, 19:07
Re: [Help] SetTimerEx - by Miguel - 25.02.2010, 03:13
Re: [Help] SetTimerEx - by Niixie - 25.02.2010, 12:12
Re: [Help] SetTimerEx - by BlackFoX - 25.02.2010, 12:50
Re: [Help] SetTimerEx - by Niixie - 25.02.2010, 13:15
Re: [Help] SetTimerEx - by smeti - 25.02.2010, 13:21
Re: [Help] SetTimerEx - by Niixie - 25.02.2010, 13:51
Re: [Help] SetTimerEx - by BlackFoX - 25.02.2010, 14:00
Re: [Help] SetTimerEx - by Niixie - 25.02.2010, 14:10
Re: [Help] SetTimerEx - by smeti - 25.02.2010, 16:53
Re: [Help] SetTimerEx - by Niixie - 26.02.2010, 14:51
Re: [Help] SetTimerEx - by smeti - 26.02.2010, 16:04
Re: [Help] SetTimerEx - by Niixie - 26.02.2010, 16:05

Forum Jump:


Users browsing this thread: 1 Guest(s)