Got problem with function
#3

pawn Код:
enum KAdsInfo
{
    nblank,
    Float:aX,
    Float:aY,
    Float:aZ,
    Float:rotA,
    Float:rotY,
    Float:rotZ,
    aObject,
    Text3D:aLabel
};
new kadscoords[MAX_ADS][KAdsInfo];

stock LoadFixAds()
{
    new SplitDiv[6][64];
    new filestring[256];
    new File: file = fopen("ads/fixls/signs.ini", io_read);
    if (file)
    {
        for(new adid = 0; adid < MAX_ADS; adid++)
        {
            fread(file, filestring);
            split(filestring, SplitDiv, ',');
            kadscoords[adid][aX] = floatstr(SplitDiv[0]);
            kadscoords[adid][aY] = floatstr(SplitDiv[1]);
            kadscoords[adid][aZ] = floatstr(SplitDiv[2]);
            kadscoords[adid][rotX] = floatstr(SplitDiv[3]);
            kadscoords[adid][rotY] = floatstr(SplitDiv[4]);
            kadscoords[adid][rotZ] = floatstr(SplitDiv[5]);
            kadscoords[adid][aObject] = CreateDynamicObject(ADIDS, kadscoords[adid][aX], kadscoords[adid][aY], kadscoords[adid][aZ], kadscoords[adid][rotX], kadscoords[adid][rotY], kadscoords[adid][rotZ]);
            kadscoords[adid][aLabel] = Create3DTextLabel(fixcentername[fixcenter], ADS_COLOR ,kadscoords[adid][aX], kadscoords[adid][aY], kadscoords[adid][aZ],DRAW_DISRANCE_3DTEXT,0,1);
        }
    }
    fclose(file);
}
Reply


Messages In This Thread
Got problem with function - by woaha - 13.11.2010, 14:57
Re: Got problem with function - by willsuckformoney - 13.11.2010, 15:01
Re: Got problem with function - by MadeMan - 13.11.2010, 15:25
Re: Got problem with function - by Mean - 13.11.2010, 18:39
Re: Got problem with function - by marko94 - 13.11.2010, 22:08
Re: Got problem with function - by woaha - 14.11.2010, 07:59
Re: Got problem with function - by woaha - 16.11.2010, 10:25
Re: Got problem with function - by woaha - 17.11.2010, 14:05
Re: Got problem with function - by woaha - 18.11.2010, 14:06
Re: Got problem with function - by woaha - 20.11.2010, 16:58

Forum Jump:


Users browsing this thread: 2 Guest(s)