SA-MP Forums Archive
INI_Parsefile not 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: INI_Parsefile not working. (/showthread.php?tid=587534)



INI_Parsefile not working. (Solved) - Sellize - 31.08.2015

PHP код:
format(str4sizeof(str4), DPATHidx);
        
INI_ParseFile(str"loaddoor_%s", .bExtra true, .extra idx, .bPassTag true);
        
printf("id %i model %i"idxDoorsInfo[idx][dModel]); 
PHP код:
forward loaddoor_data(idxtag[], name[], value[]);
public 
loaddoor_data(idxtag[], name[], value[])
{
    
INI_Int("dUsed"DoorsInfo[idx][dUsed]);
    
INI_Int("dModel"DoorsInfo[idx][dModel]);
    
INI_Float("dX"DoorsInfo[idx][dX]);
    
INI_Float("dY"DoorsInfo[idx][dY]);
    
INI_Float("dZ"DoorsInfo[idx][dZ]);
    
INI_Float("dRX"DoorsInfo[idx][dRX]);
    
INI_Float("dRY"DoorsInfo[idx][dRY]);
    
INI_Float("dRZ"DoorsInfo[idx][dRZ]);
    
INI_Int("dInt"DoorsInfo[idx][dInt]);
    
INI_Int("dWorld"DoorsInfo[idx][dWorld]);
    return 
1;

The debug prints 0 on both values so they're not being loaded. I am literally going crazy because I can't find out what's wrong myself, I was thinking something with tags...

INI file: 'Doors/1.ini'
Код:
[data]
dUsed = 1
dModel = 1504
dX = -1443.239868
dY = 2628.994628
dZ = 54.815917
dRX = 0.000000
dRY = 0.000000
dRZ = -35.500003
dInt = 0
dWorld = 0



Re: INI_Parsefile not working. - Sellize - 31.08.2015

bump.


Re: INI_Parsefile not working. - Jefff - 31.08.2015

Load str4 not str ?


Re: INI_Parsefile not working. - Sellize - 01.09.2015

Quote:
Originally Posted by Jefff
Посмотреть сообщение
Load str4 not str ?
oh my god please kill me

solved.