Help Please :/
#1

Okay I keep getting an idiot error that I seem not to find any solutions, Could someone help us a little here ?
Errors:

pawn Код:
C:\Users\Max\Desktop\GTA San Andreas\samp03csvr_win32\filterscripts\ColdAdmin.pwn(95) : error 047: array sizes do not match, or destination array is too small
C:\Users\Max\Desktop\GTA San Andreas\samp03csvr_win32\filterscripts\ColdAdmin.pwn(96) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Lines:
94
pawn Код:
{
95:
pawn Код:
LSPD[fName] = dini_Get(file, "Name");//Gosh
96:
pawn Код:
LSPD[fLeader] = dini_Get(file, "Leader");
The enum:
pawn Код:
enum fInfo
{
    fName[128],
    fLeader[128],
    fSkin1,
    fSkin2,
    fSkin3,
    fSkin4,
    fSkin5,
    fSkin6,
    fRank1[20],
    fRank2[20],
    fRank3[20],
    fRank4[20],
    fRank5[20],
    fRank6[20],
    Float:fx,
    Float:fy,
    Float:fz,
    finterior,
};
And My File Creating ofcourse:

pawn Код:
new file[200];
    format(file, sizeof file, FACTION_FILE, "LSPD");
    if(!dini_Exists(file)) dini_Create(file);
    {
        dini_Set(file, "Name", "Bla");
        dini_Set(file, "Leader", "Penguin");
        dini_IntSet(file, "Skin1", 283);
        dini_IntSet(file, "Skin2", 283);
        dini_IntSet(file, "Skin3", 285);
        dini_IntSet(file, "Skin4", 286);
        dini_IntSet(file, "Skin5", 287);
        dini_IntSet(file, "Skin6", 288);
        dini_Set(file, "Rank1", "Cadet");
        dini_Set(file, "Rank2", "Officer");
        dini_Set(file, "Rank3", "Senior Officer");
        dini_Set(file, "Rank4", "Sergeant");
        dini_Set(file, "Rank5", "Deputy Chief");
        dini_Set(file, "Rank6", "Chief");
        dini_FloatSet(file, "Spawnpointx", 1480.9285);
        dini_FloatSet(file, "Spawnpointy", -1769.8893);
        dini_FloatSet(file, "Spawnpointz", 18.7958);
    }
and if it already exists:
pawn Код:
LSPD[fName] = dini_Get(file, "Name");//Gosh
        LSPD[fLeader] = dini_Get(file, "Leader");
        LSPD[fSkin1] = dini_Int(file, "Skin1");
        LSPD[fSkin2] = dini_Int(file, "Skin2");
        LSPD[fSkin3] = dini_Int(file, "Skin3");
        LSPD[fSkin4] = dini_Int(file, "Skin4");
        LSPD[fSkin5] = dini_Int(file, "Skin5");
        LSPD[fSkin6] = dini_Int(file, "Skin6");
        LSPD[fRank1] = dini_Int(file, "Rank1");
        LSPD[fRank2] = dini_Int(file, "Rank2");
        LSPD[fRank3] = dini_Int(file, "Rank3");
        LSPD[fRank4] = dini_Int(file, "Rank4");
        LSPD[fRank5] = dini_Int(file, "Rank5");
        LSPD[fRank6] = dini_Int(file, "Rank6");
        LSPD[fx] = dini_Float(file, "Spawnpointx");
        LSPD[fy] = dini_Float(file, "Spawnpointy");
        LSPD[fz] = dini_Float(file, "Spawnpointz")
Factions File Location:
pawn Код:
#define FACTION_FILE        "/ColdAdmin/Factions/%s.ini"
Reply


Messages In This Thread
Help Please :/ - by Max_Coldheart - 09.02.2011, 14:57
Re: Help Please :/ - by Medal Of Honor team - 09.02.2011, 15:13
Re: Help Please :/ - by Sasino97 - 09.02.2011, 15:22
Re: Help Please :/ - by Jantjuh - 09.02.2011, 15:58
Re: Help Please :/ - by Vince - 09.02.2011, 17:12
Re: Help Please :/ - by Max_Coldheart - 09.02.2011, 18:21

Forum Jump:


Users browsing this thread: 2 Guest(s)