• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

error at compile time for leaves mana and life in percentage

pedro souza

New Member
Joined
Mar 10, 2019
Messages
2
Reaction score
0
Save the people from the otland, I came here for injections of old and great friend, to see if any of you can help me in this error here:


||=== Build: Release Windows in TheForgottenServer (compiler: GNU GCC Compiler) ===| C:\Users\Pedroh\Desktop\Genesis Baiak Rox\sources\protocolgame.cpp|2753|error: stray '\357' in program| C:\Users\Pedroh\Desktop\Genesis Baiak Rox\sources\protocolgame.cpp|2753|error: stray '\273' in program| C:\Users\Pedroh\Desktop\Genesis Baiak Rox\sources\protocolgame.cpp|2753|error: stray '\277' in program| C:\Users\Pedroh\Desktop\Genesis Baiak Rox\sources\protocolgame.cpp|2753|error: stray '\357' in program| C:\Users\Pedroh\Desktop\Genesis Baiak Rox\sources\protocolgame.cpp|2753|error: stray '\273' in program| C:\Users\Pedroh\Desktop\Genesis Baiak Rox\sources\protocolgame.cpp|2753|error: stray '\277' in program| C:\Users\Pedroh\Desktop\Genesis Baiak Rox\sources\protocolgame.cpp|2753|error: stray '\357' in program| C:\Users\Pedroh\Desktop\Genesis Baiak Rox\sources\protocolgame.cpp|2753|error: stray '\273' in program| C:\Users\Pedroh\Desktop\Genesis Baiak Rox\sources\protocolgame.cpp|2753|error: stray '\277' in program| C:\Users\Pedroh\Desktop\Genesis Baiak Rox\sources\protocolgame.cpp|2753|error: stray '\357' in program| C:\Users\Pedroh\Desktop\Genesis Baiak Rox\sources\protocolgame.cpp|2753|error: stray '\273' in program| C:\Users\Pedroh\Desktop\Genesis Baiak Rox\sources\protocolgame.cpp|2753|error: stray '\277' in program| C:\Users\Pedroh\Desktop\Genesis Baiak Rox\sources\protocolgame.cpp|2756|error: stray '\357' in program| C:\Users\Pedroh\Desktop\Genesis Baiak Rox\sources\protocolgame.cpp|2756|error: stray '\273' in program| C:\Users\Pedroh\Desktop\Genesis Baiak Rox\sources\protocolgame.cpp|2756|error: stray '\277' in program| ||=== Build failed: 15 error(s), 0 warning(s) (0 minute(s), 3 second(s)) ===|
 
EDIT: wrong subforum, you should probably ask here: Support (https://otland.net/forums/support.16/)

--- original post:

charset issue. some program converted the sources to something NON-ascii and NON-utf-8, which your compiler doesn't like... i bet it's Windows-1252 but in any case, run this PHP script:


PHP:
<?php
declare(strict_types=1);

var_dump(guess_encoding(file_get_contents('C:\\Users\\Pedroh\\Desktop\\Genesis Baiak Rox\\sources\\protocolgame.cpp')));



function guess_encoding(string $str): string {
    if($str===''){throw new \InvalidArgumentException('input string empty!');}
    $blacklist = array (
            'pass',
            'auto',
            'wchar',
            'byte2be',
            'byte2le',
            'byte4be',
            'byte4le',
            'BASE64',
            'UUENCODE',
            'HTML-ENTITIES',
            '7bit',
            '8bit',
            'Quoted-Printable',
    );
    $encodings = array_diff ( mb_list_encodings (),$blacklist );
    $detected = mb_detect_encoding ( $str, $encodings, true );
    return ( string ) $detected;
}

what do you get?
 
Last edited:
Back
Top