SA-MP Forums Archive
I don't get it anymore :S - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I don't get it anymore :S (/showthread.php?tid=122706)



I don't get it anymore :S - addysnow1 - 23.01.2010

Hey. I got this in my gm
Код:
public SaveFactions()
{
	new idx;
	new File: file2;
	while (idx < sizeof(FactionStats))
	{
		new coordsstring[512];
		format(coordsstring, sizeof(coordsstring), "%s|%s|%s|%f|%f|%f|%d|%s|%s|%s|%s|%s|%s|%s\n\n",
		FactionStats[idx][fName],
		FactionStats[idx][fColor],
		FactionStats[idx][fColorname],
		FactionStats[idx][Float:fX],
		FactionStats[idx][Float:fY],
		FactionStats[idx][Float:fZ],
		FactionStats[idx][fSkin],
		FactionStats[idx][fRank1],
		FactionStats[idx][fRank2],
		FactionStats[idx][fRank3],
		FactionStats[idx][fRank4],
		FactionStats[idx][fRank5],
		FactionStats[idx][fRank6],
		FactionStats[idx][fRank7]);
		if(idx == 0)
		{
			file2 = fopen("Factions/factions.cfg", io_write);
		}
		else
		{
			file2 = fopen("Factions/factions.cfg", io_append);
		}
		fwrite(file2, coordsstring);
		idx++;
		fclose(file2);
	}
	return 1;
}
It keep giving the follow errors"
G:\software\SA-MP\sa-mpservers\RealFreeroamCity\gamemodes\RealDeathmatc hArea.pwn(424 -- 42 : warning 213: tag mismatch
G:\software\SA-MP\sa-mpservers\RealFreeroamCity\gamemodes\RealDeathmatc hArea.pwn(424 -- 429) : warning 213: tag mismatch
G:\software\SA-MP\sa-mpservers\RealFreeroamCity\gamemodes\RealDeathmatc hArea.pwn(424 -- 430) : warning 213: tag mismatch

And there is nothing wrong...

- And when I'm creating a post it keep scrolling up if I typ. Its verry annoying!


Re: I don't get it anymore :S - llama - 23.01.2010

What is on lines 424 to 430?


Re: I don't get it anymore :S - mansonh - 23.01.2010

I assume its refering to the format line. I am guessing you are not referencing one of those strings correctly.
Would be easier if you could post your array definition and your enum for all those terms, then we can see what might cause it.

(I hate those errors too, very hard to debug )