GangZone Loader not working
#6

Quote:
Originally Posted by lrZ^ aka LarzI
Try
pawn Код:
stock LoadZones()
{
    if(fexist("TurfZones/turfs.ini"))
    {
        new entry[256];
        new Argument[9][70];
        new File: turffile = fopen("TurfZones/turfs.ini", io_read);
        if (turffile)
        {
            for(new i; i<MAX_ZONES; i++)
            {
                fread(turffile, entry);
                pTurf[i][ID] = strval(Argument[0]);
                pTurf[i][minx] = floatstr(Argument[1]);
                pTurf[i][miny] = floatstr(Argument[2]);
                pTurf[i][maxx] = floatstr(Argument[3]);
                pTurf[i][maxy] = floatstr(Argument[4]);
                pTurf[i][Team] = strval(Argument[5]);
                pTurf[i][ID] = GangZoneCreate(pTurf[i][minx],pTurf[i][miny],pTurf[i][maxx],pTurf[i][maxy]);
            }
            fclose(turffile);
        }
    }
}
Still doesn't work.

Quote:
Originally Posted by Donny
You're trying to read from "Argument" but it's empty, "entry" is the string which stores the data from the file, look at the 'fread' line.
Care to explain more?
Reply


Messages In This Thread
GangZone Loader not working - by _Vortex - 19.12.2009, 23:24
Re: GangZone Loader not working - by _Vortex - 20.12.2009, 13:02
Re: GangZone Loader not working - by dice7 - 20.12.2009, 13:29
Re: GangZone Loader not working - by LarzI - 20.12.2009, 13:33
Re: GangZone Loader not working - by Donny_k - 20.12.2009, 13:42
Re: GangZone Loader not working - by _Vortex - 20.12.2009, 17:03
Re: GangZone Loader not working - by dice7 - 20.12.2009, 17:20
Re: GangZone Loader not working - by _Vortex - 20.12.2009, 17:51
Re: GangZone Loader not working - by _Vortex - 20.12.2009, 19:11

Forum Jump:


Users browsing this thread: 1 Guest(s)