SA-MP Forums Archive
Error: Pawn Compiler library stopped working - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error: Pawn Compiler library stopped working (/showthread.php?tid=642398)



Error: Pawn Compiler library stopped working - Fpwn - 29.09.2017

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;




Re: Error: Pawn Compiler library stopped working - Fpwn - 03.10.2017

someone ? please


Re: Error: Pawn Compiler library stopped working - insus100 - 10.10.2017

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)


Re: Error: Pawn Compiler library stopped working - kAn3 - 11.10.2017

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.


Re: Error: Pawn Compiler library stopped working - Fpwn - 18.10.2017

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?



Re: Error: Pawn Compiler library stopped working - ratxrat - 19.10.2017

check } , loss 1 } make compile stop working dude


Re: Error: Pawn Compiler library stopped working - kAn3 - 19.10.2017

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


Re: Error: Pawn Compiler library stopped working - Fpwn - 19.10.2017

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;
}