I don't get it anymore :S
#1

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!
Reply
#2

What is on lines 424 to 430?
Reply
#3

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 )
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)