-
Notifications
You must be signed in to change notification settings - Fork 106
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
va_args stopped working after update #659
Comments
Use |
Yes, I tried that, it has the same problem, I think it might be my compiler version: Pawn compiler 3.10.10 |
Uhm. Try this:
|
That compiler should be fine. Which YSI version are you on? |
And does this still happen? I can't reproduce it. |
Yes, this still happens, I use the latest version that was available at the end of last year. I didn't change anything about the project until then. info:
==========================================
|
stock fmat(const fmat[], va_args<>) { new str[400]; va_format(str, sizeof(str), fmat, va_start<1>); return str; }
As an example, this function is no longer formatting a string correctly, it just returns empty formatting:
Code
SendClientMessage(playerid, -1, fmat("My name is %s!", PlayerName(playerid)));
Output:
My Name is !
And in the terminal we have the following warning:
*** YSI Warning: Bare
___
usage found - make sure it is a function parameter.The text was updated successfully, but these errors were encountered: