Got problem with function
#1

Got there errors with bottom code:

C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\NONE.pwn(1315 : warning 213: tag mismatch
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\NONE.pwn(1315 : warning 215: expression has no effect
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\NONE.pwn(1315 : error 001: expected token: ";", but found "["
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\NONE.pwn(1315 : error 029: invalid expression, assumed zero
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\NONE.pwn(1315 : warning 215: expression has no effect
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\NONE.pwn(1315 : error 001: expected token: ";", but found "]"
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\NONE.pwn(1315 : fatal error 107: too many error messages on one line.

and BTW, I don't know how to create Create3DTextLabels with "for(new adid = 1;adid<=MAX_ADS;adid++)"...

(idea is btw, dynamic ad signs)

pawn Код:
enum KAdsInfo
{
    nblank,
    Float:aX,
    Float:aY,
    Float:aZ,
    Float:rotA,
    Float:rotY,
    Float:rotZ
};

new kadscoords[KAdsInfo];

stock LoadFixAds()
{
        new SplitDiv[99][MAX_ADS];
        new filestring[256];
        new File: file = fopen("ads/fixls/signs.ini", io_read);
        if (file)
        {
            for(new adid = 1;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]);
                adid = CreateDynamicObject(ADIDS, kadscoords[adid][aX], kadscoords[adid][aY], kadscoords[adid][aZ], kadscoords[adid][rotX], kadscoords[adid][rotY], kadscoords[adid][rotZ]);
                adid = 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: 1 Guest(s)