02.10.2016, 10:02
(
Последний раз редактировалось AndySedeyn; 02.10.2016 в 13:01.
)
The %q specifier returns null when using this include:
Prints:
And
Prints:
EDIT:
Here's the fixed formatex function: http://pastebin.com/gvE8PqBK , altered code:
PHP код:
#include <a_samp>
main() {
printf("Straight: '%q'", "AndySedeyn");
}
Код:
[11:49:32] Straight: 'AndySedeyn'
PHP код:
#include <a_samp>
#include <formatex>
main() {
printf("Straight: '%q'", "AndySedeyn");
}
Код:
[11:53:11] Straight: ''
Here's the fixed formatex function: http://pastebin.com/gvE8PqBK , altered code:
PHP код:
// Handled by the original format function
case '*', 'i', 'd', 'x', 'h', 'c', 's', 'f', 'b', 'q': { // I added 'q'
// Get the argument address and save it for later
#emit LCTRL 5
#emit LOAD.S.alt iArg
#emit ADD
#emit LOAD.I
#emit STOR.S.pri iAddress
#emit MOVE.pri
#emit ADD.C 4
#emit STOR.S.pri iArg
aiArgs[iArgCount++] = iAddress;
if (s_szBuffer[iPos] == '*')
continue;
break;
}