INI Problems
#1

Код:
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;
}
Reply
#2

#include <YSI\y_ini>
Reply
#3

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...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)