Write in a different langauge using fwrite
#1

Hey guys, I am having some errors with my function:
PHP код:
#undef fwrite
fwrite_utf8(File:handlestr[], bool:use_utf8 false)
{
        if(!
handle) return 0;
        new 
x;
        while(
str[x] != EOSfputchar(handlestr[x++], use_utf8);
        return 
1;

I want to write in my native language to the logs in-case someone writes in non-English, it shows me tons of errors and warnings, anyone ?
Reply
#2

This function is bullshit...

cause fwrite writes in UTF-8...and is much faster then this loop...
Reply
#3

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
This function is bullshit...

cause fwrite writes in UTF-8...and is much faster then this loop...
Yeah after a quick SAMP WIKI reading I realized the stupidity.
I'll look for something else, thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)