format and printf bug in SAMP 0.3c R3-1
#9

As we are talking about those bugs now, how about the string-bug in Timers and some other Functions?
pawn Код:
new teststring[4];
public OnFilterScriptInit()
{
    teststring = "Hi!";
    CallLocalFunction("print", "s", teststring); // does not work
    SetTimerEx("print", 1000, 0, "s", teststring); // does not work
    SetTimerEx("Func", 2000, 0, "d", 0); // works
    SetTimerEx("Func", 3000, 0, "d", 1); // works
}

forward Func(text);
public Func(text)
{
    if(text)
    {
        printf("_%s_", teststring);
    }
    else
    {
        print(teststring);
    }
}
Output:
Код:
_Hi!_
Hi!
Expected Output:
Код:
Hi!
Hi!
_Hi!_
Hi!
Reply


Messages In This Thread
format and printf bug in SAMP 0.3c R3-1 - by bocian941 - 25.07.2011, 23:41
Re: format and printf bug in SAMP 0.3c R3-1 - by Karlip - 26.07.2011, 10:57
Re: format and printf bug in SAMP 0.3c R3-1 - by Vince - 26.07.2011, 11:06
Re: format and printf bug in SAMP 0.3c R3-1 - by dugi - 26.07.2011, 11:14
Re: format and printf bug in SAMP 0.3c R3-1 - by Vince - 26.07.2011, 11:32
Re: format and printf bug in SAMP 0.3c R3-1 - by bocian941 - 26.07.2011, 13:19
Re: format and printf bug in SAMP 0.3c R3-1 - by JernejL - 26.07.2011, 14:33
Re: format and printf bug in SAMP 0.3c R3-1 - by Kalcor - 27.07.2011, 09:08
AW: format and printf bug in SAMP 0.3c R3-1 - by Meta - 27.07.2011, 11:20
AW: format and printf bug in SAMP 0.3c R3-1 - by Meta - 27.07.2011, 11:41

Forum Jump:


Users browsing this thread: 2 Guest(s)