WTF is this for bullshit, why doesn't it work....
#2

Second mystery, My points saving is also fucked up. Also for no reason. WTF...
Point1 = Good
Point2 = wrong (Coord X = 0.00000)
Point3 = Good
Point4 = wrong (Coord X = 0.00000)
Point5 = Good
Point6 = wrong (Coord X = 0.00000)
Point7 = Good
Point8 = wrong (Coord X = 0.00000)
Point9 = Good
Point10 = wrong (Coord X = 0.00000)
wtf??

Код:
public SavePoints()
{
	new idx;
	new File: file2;
	while (idx < sizeof(DynamicPoints))
	{

		new coordsstring[512];
		format(coordsstring, sizeof(coordsstring), "%f|%f|%f|%d|%d|%s|%s\n",
		DynamicPoints[idx][fpX],
		DynamicPoints[idx][fpY],
		DynamicPoints[idx][fpZ],
		DynamicPoints[idx][Price],
		DynamicPoints[idx][Pickupid],
		DynamicPoints[idx][PointName],
		DynamicPoints[idx][CurrentOwner]);
		if(idx == 0)
		{
			file2 = fopen("points.cfg", io_write);
		}
		else
		{
			file2 = fopen("points.cfg", io_append);
		}
		fwrite(file2, coordsstring);
		idx++;
		fclose(file2);
	}
	return 1;
}
Reply


Messages In This Thread
WTF is this for bullshit, why doesn't it work.... - by RSC_Quicker - 21.02.2010, 16:29
Re: WTF is this for bullshit, why doesn't it work.... - by RSC_Quicker - 21.02.2010, 16:38

Forum Jump:


Users browsing this thread: 2 Guest(s)