SA-MP Forums Archive
SetTimerEx BUG - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SetTimerEx BUG (/showthread.php?tid=102498)



SetTimerEx BUG - OFFREAL - 15.10.2009

Function "SetTimerEx" incorrectly works with a string variable!!!

test_timer.pwn (full code)

pawn Код:
#include <a_samp>

forward message1(i, s[], n, x);
forward message2(i, s[], n, x);

public OnGameModeInit()
{
print("Starting timer1...");
SetTimerEx("message1", 5000, false, "isdx", 5, "FIRST text", 555555, 0xABC);
print("Starting timer2...");
SetTimerEx("message2", 10000, false, "isdx", 10, "SECOND text", 111111, 0xDEF);
return 1;
}

public message1(i, s[], n, x)
{
printf("Integer = %i. String = %s. Number = %d. Hex = %x", i, s, n, x);
return 1;
}

public message2(i, s[], n, x)
{
printf("Integer = %i. String = %s. Number = %d. Hex = %x", i, s, n, x);
return 1;
}
Server console:

Код:
[22:42:46] Starting timer1...
[22:42:46] Starting timer2...

[22:42:52] Integer = 5. String = SECOND text. Number = 555555. Hex = ABC
[22:42:57] Integer = 10. String = SECOND text. Number = 111111. Hex = DEF



Re: SetTimerEx BUG - Masj - 15.10.2009

yes, it's true... It is since old versions and still isn't fixed.


Re: SetTimerEx BUG - FUNExtreme - 15.10.2009

Report it (hint: stickied topic)


Re: SetTimerEx BUG - MenaceX^ - 15.10.2009

Yes, it is a bug as I don't see anything wrong with the code.