Problem with function: 'format'
#1

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:
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 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.
Reply


Messages In This Thread
Problem with function: 'format' - by [HLF]Southclaw - 08.02.2011, 16:33
Re: Problem with function: 'format' - by Mean - 08.02.2011, 17:06
Re: Problem with function: 'format' - by [HLF]Southclaw - 08.02.2011, 17:17
Re: Problem with function: 'format' - by dice7 - 08.02.2011, 17:27

Forum Jump:


Users browsing this thread: 1 Guest(s)