08.02.2011, 16:33
Hi, I'm having a problem with format.
I'm writing a small account script for a friends server.
The function 'format' doesn't seem to be working properly:
"PRINT 1" : 's'
"PRINT 2" : '<password>, 0'
I don't see any problem with it
It's not the writing function [Fini] because the print is set before that, and the string appears wrong.
This is confusing and pissing me off, any help would be appreciated.
I'm writing a small account script for a friends server.
The function 'format' doesn't seem to be working properly:
pawn Код:
new str[128];
format(str, 128, "%s, 0", inputtext);
print(str); // PRINT 1
printf("%s, 0", inputtext); // PRINT 2
Fini_SetStr(GetName(playerid));
"PRINT 2" : '<password>, 0'
I don't see any problem with it
It's not the writing function [Fini] because the print is set before that, and the string appears wrong.
This is confusing and pissing me off, any help would be appreciated.