27.07.2011, 11:20
(
Последний раз редактировалось Meta; 27.07.2011 в 11:57.
)
As we are talking about those bugs now, how about the string-bug in Timers and some other Functions?
Output:
Expected Output:
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);
}
}
Код:
_Hi!_ Hi!
Код:
Hi! Hi! _Hi!_ Hi!