Slight issue with Y_INI. Working, but messed up in the ini file
#9

pawn Код:
C:\Users\matt\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(22268) : error 017: undefined symbol "name"
C:\Users\matt\Desktop\Raven'
s Roleplay 0.3c\gamemodes\larp.pwn(22268) : error 017: undefined symbol "value"
C:\Users\matt\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(22269) : error 017: undefined symbol "name"
C:\Users\matt\Desktop\Raven'
s Roleplay 0.3c\gamemodes\larp.pwn(22269) : error 017: undefined symbol "value"
C:\Users\matt\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(22270) : error 017: undefined symbol "name"
C:\Users\matt\Desktop\Raven'
s Roleplay 0.3c\gamemodes\larp.pwn(22270) : error 017: undefined symbol "value"
C:\Users\matt\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(22271) : error 017: undefined symbol "name"
C:\Users\matt\Desktop\Raven'
s Roleplay 0.3c\gamemodes\larp.pwn(22271) : error 017: undefined symbol "value"
C:\Users\matt\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(22272) : error 017: undefined symbol "name"
C:\Users\matt\Desktop\Raven'
s Roleplay 0.3c\gamemodes\larp.pwn(22272) : error 017: undefined symbol "value"
C:\Users\matt\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(22273) : error 017: undefined symbol "name"
C:\Users\matt\Desktop\Raven'
s Roleplay 0.3c\gamemodes\larp.pwn(22273) : error 017: undefined symbol "value"
C:\Users\matt\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(22274) : error 017: undefined symbol "name"
C:\Users\matt\Desktop\Raven'
s Roleplay 0.3c\gamemodes\larp.pwn(22274) : error 017: undefined symbol "value"
C:\Users\matt\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(22275) : error 029: invalid expression, assumed zero
C:\Users\matt\Desktop\Raven'
s Roleplay 0.3c\gamemodes\larp.pwn(22275) : error 035: argument type mismatch (argument 1)
C:\Users\matt\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(22275) : error 001: expected token: ";", but found "return"
C:\Users\matt\Desktop\Raven'
s Roleplay 0.3c\gamemodes\larp.pwn(22275) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


18 Errors.
pawn Код:
public LoadCar()
{
    for(new idx = 1; idx < sizeof(CarInfo) ; idx++)
    {
        new carfile[64];
        format(carfile, sizeof(carfile),"LARP/Vehicles/%d.ini", idx);
        new INI:clfile = INI_Open(carfile);
        if(fexist(carfile))
        {
            INI_Int("Model",CarInfo[idx][cModel]);
            INI_Float("Location_X",CarInfo[idx][cLocationx]);
            INI_Float("Location_Y",CarInfo[idx][cLocationy]);
            INI_Float("Location_Z",CarInfo[idx][cLocationz]);
            INI_Float("Angle",CarInfo[idx][cAngle]);
            INI_Int("Color_1",CarInfo[idx][cColorOne]);
            INI_Int("Color_2",CarInfo[idx][cColorTwo]);
            strmid(CarInfo[idx][cOwner], INI_String(clfile,"Owner"), 0, strlen(INI_String(clfile,"Owner")), 255);
            INI_Int("Owned",CarInfo[idx][cOwned]);
            INI_Int("Locked",CarInfo[idx][cLock]);
            INI_Int("VirtualWorld",CarInfo[idx][cVirWorld]);
            INI_Int("Component0",CarInfo[idx][cComponent0]);
            INI_Int("Component1",CarInfo[idx][cComponent1]);
            INI_Int("Component2",CarInfo[idx][cComponent2]);
            INI_Int("Component3",CarInfo[idx][cComponent3]);
            INI_Int("Component4",CarInfo[idx][cComponent4]);
            INI_Int("Component5",CarInfo[idx][cComponent5]);
            INI_Int("Component6",CarInfo[idx][cComponent6]);
            INI_Int("Component7",CarInfo[idx][cComponent7]);
            INI_Int("Component8",CarInfo[idx][cComponent8]);
            INI_Int("Component9",CarInfo[idx][cComponent9]);
            INI_Int("Component10",CarInfo[idx][cComponent10]);
            INI_Int("Component11",CarInfo[idx][cComponent11]);
            INI_Int("Component12",CarInfo[idx][cComponent12]);
            INI_Int("Component13",CarInfo[idx][cComponent13]);
            INI_Int("SecurityCode",CarInfo[idx][cCode]);
            INI_Close(clfile); // Closes the file
        }
    }
    print("[SCRIPT]: Loaded Cars On New System! [Y_INI!]");
    return 1;
}
What bust up their, name/value?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)