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 ->
Error: Pawn Compiler library stopped working
I leave the line of code ->
PHP Code:
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;
}
for(new i = 0; i != sizeof DERBY_FILE_INFO; i ++)
{
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(Handler, Object_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_INFO[ TOTAL_DERBYS ][DERBY_FILE_EXISTS] = true;
format(DERBY_FILE_INFO[ TOTAL_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.", mapname, TOTAL_DERBYS);
return 1;
}