#1

WARRNING
Код:
C:\DOCUME~1\EA3B~1\Desktop\FREAKW~1\FILTER~1\CAROWN~1.PWN(1805) : warning 235: public function lacks forward declaration (symbol "SaveCarCoords")
C:\DOCUME~1\EA3B~1\Desktop\FREAKW~1\FILTER~1\CAROWN~1.PWN(1852) : warning 203: symbol is never used: "DealerCar"
Код:
1805public SaveCarCoords()
{
	new idx;
	new File: file2;
	while (idx < sizeof(CarInfo))
	{
	    new coordsstring[256];
	    format(coordsstring, sizeof(coordsstring), "%d|%f|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d\n",
		CarInfo[idx][cModel],
		CarInfo[idx][cLocationx],
		CarInfo[idx][cLocationy],
		CarInfo[idx][cLocationz],
		CarInfo[idx][cAngle],
		CarInfo[idx][cColorOne],
		CarInfo[idx][cColorTwo],
		CarInfo[idx][mod1],
		CarInfo[idx][mod2],
		CarInfo[idx][mod3],
		CarInfo[idx][mod4],
		CarInfo[idx][mod5],
		CarInfo[idx][mod6],
		CarInfo[idx][mod7],
		CarInfo[idx][mod8],
		CarInfo[idx][mod9],
		CarInfo[idx][mod10],
		CarInfo[idx][mod11],
		CarInfo[idx][mod12],
		CarInfo[idx][mod13],
		CarInfo[idx][mod14],
		CarInfo[idx][mod15],
		CarInfo[idx][mod16],
		CarInfo[idx][mod17],
		CarInfo[idx][paintjob]);
		if(idx == carsonserver)
		{
			file2 = fopen("Cars.cfg", io_write);
		}
		else
		{
			file2 = fopen("Cars.cfg", io_append);
		}
		fwrite(file2, coordsstring);
		idx++;
		fclose(file2);
	}
	return 1;
}
1852--There isnt
Reply
#2

pawn Код:
forward SaveCarCoords();
public SaveCarCoords()
{
    new idx;
    new File: file2;
    while (idx < sizeof(CarInfo))
    {
        new coordsstring[256];
        format(coordsstring, sizeof(coordsstring), "%d|%f|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d\n",
        CarInfo[idx][cModel],
        CarInfo[idx][cLocationx],
        CarInfo[idx][cLocationy],
        CarInfo[idx][cLocationz],
        CarInfo[idx][cAngle],
        CarInfo[idx][cColorOne],
        CarInfo[idx][cColorTwo],
        CarInfo[idx][mod1],
        CarInfo[idx][mod2],
        CarInfo[idx][mod3],
        CarInfo[idx][mod4],
        CarInfo[idx][mod5],
        CarInfo[idx][mod6],
        CarInfo[idx][mod7],
        CarInfo[idx][mod8],
        CarInfo[idx][mod9],
        CarInfo[idx][mod10],
        CarInfo[idx][mod11],
        CarInfo[idx][mod12],
        CarInfo[idx][mod13],
        CarInfo[idx][mod14],
        CarInfo[idx][mod15],
        CarInfo[idx][mod16],
        CarInfo[idx][mod17],
        CarInfo[idx][paintjob]);
        if(idx == carsonserver)
        {
            file2 = fopen("Cars.cfg", io_write);
        }
        else
        {
            file2 = fopen("Cars.cfg", io_append);
        }
        fwrite(file2, coordsstring);
        idx++;
        fclose(file2);
    }
    return 1;
}
and about the second warning, remove a line that says "new DealerCar;" (Something like that)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)