Error: Pawn Compiler library stopped working
#1

Hello, I need your help, I try to enter these code lines from a derby to my GM but it marks me a pawno error that stopped working, that it will be wrong with this line or where should I put it?, Thanks

Error: Pawn Compiler library stopped working

I leave the line of code ->

PHP код:
LoadDerbyNames(mapname[])
{
    new 
File:Handler fopen(mapnameio_read);
    if(!
Handler)
    {
        
printf("--- Error cargando '%s', no se encontrу la lista de mapas derby."mapname);
        return 
0;
    }
    for(new 
0!= sizeof DERBY_FILE_INFO++)
    {
        
DERBY_FILE_INFO[i][DERBY_NAME] = EOS;
        
DERBY_FILE_INFO[i][DERBY_FILE_EXISTS] = false;
        
DERBY_FILE_INFO[i][DERBY_FILE_VALID] = false;
    }
    
TOTAL_DERBYS 0;
    while(
fread(HandlerObject_String))
    {
        
StripNewLine(Object_String);
        if(!
isnull(Object_String))
        {
            if(
TOTAL_DERBYS >= MAX_DERBYS)
            {
                
printf("--- Error, se ha supero el lнmite (%d) de mapas derby."MAX_DERBYS);
                return 
0;
            }
            
DERBY_FILE_INFOTOTAL_DERBYS ][DERBY_FILE_EXISTS] = true;
            
format(DERBY_FILE_INFOTOTAL_DERBYS ][DERBY_NAME], 24"%s"Object_String);
            
TOTAL_DERBYS ++;
        }
    }
    
fclose(Handler);
    if(
TOTAL_DERBYS == 0)
    {
        
printf("--- Error cargando la lista de derbys '%s', no se encontrу ningъn derby."mapname);
        return 
0;
    }
    
printf("--- LISTA '%s' OK. Se importaron %d mapas derby."mapnameTOTAL_DERBYS);
    return 
1;

Reply
#2

someone ? please
Reply
#3

If you are using Windows 10, set pawno.exe to run in compatibility mode to Windows 7. (Right click on pawno.exe, properties, compatibility, set this program to run in comp. mode, and select windows 7)
Reply
#4

Your are simply pasting some code into your script. Doing it without giving any kind of respect to your brackets will often result in chaotic uncompileable code. If you really cannot script it and need to copy it (even if I dont suggest it at all, as you need to know exactly how your code works out things) try with adding one statement per time, and not all together.
Reply
#5

I still have the problem, someone can help me please.

Only when I add that line of code is where the compilation thunder, remove it and compile well.
Is something wrong with that line of code?
Reply
#6

check } , loss 1 } make compile stop working dude
Reply
#7

Or use Sublime Text to compile. It will highlight unmatching braces that often make pawn compiler crash when missing.
Reply
#8

I try to compile from the first line and it stays the same, something is not right there

LoadDerbyNames(mapname[])
{
new File:Handler = fopen(mapname, io_read);
if(!Handler)
{
printf("--- Error cargando '%s', no se encontrу la lista de mapas derby.", mapname);
return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)