-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parameters are not transmitted properly #17
Comments
This bug still exists in latest 3.0.0 release |
Should be fixed by https://github.com/bmisiak/samp-precise-timers/releases/tag/v3.1.0 Thanks for reporting! Let me know! |
Still not fixed, also i found an arrays bug public OnGameModeInit()
{
// Test basic (incorrect parameter values)
SetPreciseTimer("TestBasic", 100, false, "iifs", 100, -200, 0.123456789, "qwerty");
// Test array (server crash)
new arr[5] = {11, 22, 33, 44, 55};
SetPreciseTimer("TestArray", 100, false, "aA", arr, sizeof(arr));
return 1;
} forward TestBasic(p1, p2, Float: p3, p4[]);
public TestBasic(p1, p2, Float: p3, p4[])
{
printf("[TestBasic] p1 %i, p2 %i, p3 %f, p4 %s", p1, p2, p3, p4);
return 1;
}
forward TestArray(p1[], p1_size);
public TestArray(p1[], p1_size)
{
for(new i = 0; i < p1_size; i++)
{
printf("[TestArray] p1[%i]=%i", i, p1[i]);
}
return 1;
} Result [TestBasic] p1 15833880, p2 15833876, p3 0.000000, p4 qwerty |
Ah! Yoinked 3.1.0. Tested your script on version 3.1.1 I just released. Thank you for testing and reporting! |
Everything is fixed, including array crashes Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using the v2.1.0 version of the plugin and when I send a value I get a different value.
Here is my code:
Result:
Version 2.0.2 does not seem to have such a problem.
Result:
The text was updated successfully, but these errors were encountered: