SA-MP Forums Archive
INI Problems - 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 Problems (/showthread.php?tid=440192)



INI Problems - DuarteCambra - 28.05.2013

Код:
error 017: undefined symbol "INI_Open"
error 017: undefined symbol "INI_SetTag"
error 017: undefined symbol "INI_WriteInt"
error 017: undefined symbol "INI_WriteInt"
error 017: undefined symbol "INI_WriteInt"
error 017: undefined symbol "INI_WriteFloat"
error 017: undefined symbol "INI_WriteFloat"
error 017: undefined symbol "INI_WriteFloat"
error 017: undefined symbol "INI_WriteFloat"
error 017: undefined symbol "INI_WriteFloat"
error 017: undefined symbol "INI_WriteFloat"
...
fatal error 107: too many error messages on one line
These are the errors I get, can someone help me fixing them?
pawn Код:
FUNC: SaveRadar(h)
{
new FileName[20];
format(FileName, sizeof(FileName), "radari/Radar_%d.ini", h);
if(fexist(FileName))
{
    new INI:File = INI_Open(FileName);
    INI_SetTag(File,"data");
    INI_WriteInt(File,"Brzina",RadarInfo[h][raBrzina]);
    INI_WriteInt(File,"Kazna",RadarInfo[h][raKazna]);
    INI_WriteInt(File,"Precnik",RadarInfo[h][raPrecnik]);
    INI_WriteFloat(File,"PosX",RadarInfo[h][raPosX]);
    INI_WriteFloat(File,"PosY",RadarInfo[h][raPosY]);
    INI_WriteFloat(File,"PosZ",RadarInfo[h][raPosZ]);
    INI_WriteFloat(File,"PosrX",RadarInfo[h][raPosrX]);
    INI_WriteFloat(File,"PosrY",RadarInfo[h][raPosrY]);
    INI_WriteFloat(File,"PosrZ",RadarInfo[h][raPosrZ]);
    INI_Close(File);
}
printf("Radar %i uspesno sacuvan!",h);
return 1;
}

FUNC: LoadRadar_Data(h, name[], value[])
{
    INI_Int("Brzina",RadarInfo[h][raBrzina]);
    INI_Int("Kazna",RadarInfo[h][raKazna]);
    INI_Int("Precnik",RadarInfo[h][raPrecnik]);
    INI_Float("PosX",RadarInfo[h][raPosX]);
    INI_Float("PosY",RadarInfo[h][raPosY]);
    INI_Float("PosZ",RadarInfo[h][raPosZ]);
    INI_Float("PosrX",RadarInfo[h][raPosrX]);
    INI_Float("PosrY",RadarInfo[h][raPosrY]);
    INI_Float("PosrZ",RadarInfo[h][raPosrZ]);
    return 1;
}



Re: INI Problems - xXShadowXx - 28.05.2013

#include <YSI\y_ini>


Re: INI Problems - DuarteCambra - 28.05.2013

Quote:
Originally Posted by xXShadowXx
Посмотреть сообщение
#include <YSI\y_ini>
Oh god, fail! I tought that was the first thing I did, I miss confused YSI\ysi_timers with YSI\y_ni.
Sorry for such a waste of time...