My own house-making FS. (2 errors) [REP ++]
#1

Hey, I am making a FS and you can make houses with it while IG. I made the /createhouse command already, but I am having some problems now with loading them up. This is supposed to loop through all the houses, create the existing houses into the server.
pawn Код:
stock Laemajad(majaid)
{
    for(new i = 0; i < MAX_MAJAD; i++)
    {
        new fail[128];
        format(fail, sizeof(fail), "Majad/%d.txt", i);
        if(dini_Exists(fail)) break;
        MajaInfo[i][hOmanik] = dini_Get(fail, "Omanik");
        MajaInfo[i][hMuugis] = dini_Int(fail, "Muugis");
        MajaInfo[i][hHind]= dini_Int(fail, "Hind(kui mььgiks)");
        MajaInfo[i][hNimi] = dini_Int(fail, "Nimi");
        MajaInfo[i][X] = dini_Int(fail, "Sisenemise X");
        MajaInfo[i][Y] = dini_Int(fail, "Sisenemise Y");
        MajaInfo[i][Z] = dini_Int(fail, "Sisenemise Z");
        MajaInfo[i][hVirtualworld] = dini_Int(fail, "Vдlimine virtualworld");
        hSisenemine[i] = CreateDynamicCP(MajaInfo[i][X], MajaInfo[i][Y],MajaInfo[i][Z],1.5, MajaInfo[i][hVirtualworld]);
        hValjumine[i] = CreateDynamicCP(MajaInfo[i][intX], MajaInfo[i][intY],MajaInfo[i][intZ],1.5, MajaInfo[i][hsVirtualworld]);
        new 3dtext[100];
        switch(MajaInfo[i][hMuugis])
        {
            case 0:{format(3dtext, sizeof(3dtext), "Omanik: %s\n%s", MajaInfo[i][hOmanik], MajaInfo[i][hNimi]);}
            case 1:(format(3dtext, sizeof(3dtext), "MAJA MЬЬGIKS:\nHind: %d", MajaInfo[i][mHind]);}
        }
        Create3DTextLabel(3dtext, C_BLUE, MajaInfo[i][X], MajaInfo[i][Y],MajaInfo[i][Z],1.5, MajaInfo[i][hVirtualworld]);
    }
}
And I am getting 1 error now, cant figure out how to fix this.
pawn Код:
(64) : error 021: symbol already defined: "Create3DTextLabel"
The line 64 is:
Код:
stock Laemajad(majaid)
Reply


Messages In This Thread
My own house-making FS. (2 errors) [REP ++] - by Dan. - 08.04.2012, 07:40
Re: My own house-making FS. (2 errors) [REP ++] - by Cjgogo - 08.04.2012, 07:58
Re: My own house-making FS. (2 errors) [REP ++] - by Dan. - 08.04.2012, 08:02
Re: My own house-making FS. (2 errors) [REP ++] - by $$inSane - 08.04.2012, 08:06
Re: My own house-making FS. (2 errors) [REP ++] - by Dan. - 08.04.2012, 08:08
Re: My own house-making FS. (2 errors) [REP ++] - by Reklez - 08.04.2012, 08:09
Re: My own house-making FS. (2 errors) [REP ++] - by Dan. - 08.04.2012, 08:12
Re: My own house-making FS. (2 errors) [REP ++] - by Dan. - 08.04.2012, 08:50

Forum Jump:


Users browsing this thread: 1 Guest(s)