Tag mismatch
#9

I think, result is:
I put 100 drugs, then result 100 or it's car ID?

/trunk command: http://pawn.pastebin.com/B6ThWLWt

I removed 2 thing's "Float:" and i get 2 warning's.

Output
Код:
C:\Documents and Settings\Kasutaja\My Documents\SAMP\gamemodes\sg.pwn(48150) : warning 213: tag mismatch
C:\Documents and Settings\Kasutaja\My Documents\SAMP\gamemodes\sg.pwn(48151) : warning 213: tag mismatch
Code
Код:
		  vehTrunkMats[idx] = floatstr(arrCoords[10]);
		  vehTrunkDrugs[idx] = floatstr(arrCoords[11]);
Full Code
Код:
public LoadTrunk()
{
	new arrCoords[13][64];
	new strFromFile2[256];
	new File: file = fopen("trunk.cfg", io_read);
	if (file)
	{
		new idx = 1;
		while (idx < sizeof(CarInfo))
		{
		  fread(file, strFromFile2);
		  split(strFromFile2, arrCoords, ',');
		  vehTrunk[idx][1] = strval(arrCoords[0]);
		  vehTrunkAmmo[idx][1] = strval(arrCoords[1]);
		  vehTrunk[idx][2] = strval(arrCoords[2]);
		  vehTrunkAmmo[idx][2] = strval(arrCoords[3]);
		  vehTrunk[idx][3] = strval(arrCoords[4]);
		  vehTrunkAmmo[idx][3] = strval(arrCoords[5]);
		  vehTrunk[idx][4] = strval(arrCoords[6]);
		  vehTrunkAmmo[idx][4] = strval(arrCoords[7]);
		  vehTrunkCounter[idx] = strval(arrCoords[8]);
		  vehTrunkArmour[idx] = floatstr(arrCoords[9]);
		  vehTrunkMats[idx] = floatstr(arrCoords[10]);
		  vehTrunkDrugs[idx] = floatstr(arrCoords[11]);
		  idx++;
		}
	}
	return 1;
}
Reply


Messages In This Thread
Tag mismatch - by Mechscape - 11.05.2010, 20:18
Re: Tag mismatch - by Zh3r0 - 11.05.2010, 20:19
Re: Tag mismatch - by FUNExtreme - 11.05.2010, 20:20
Re: Tag mismatch - by Mechscape - 11.05.2010, 21:31
Re: Tag mismatch - by Mechscape - 15.05.2010, 16:07
Re: Tag mismatch - by juice.j - 15.05.2010, 16:10
Re: Tag mismatch - by Mechscape - 15.05.2010, 16:12
Re: Tag mismatch - by juice.j - 15.05.2010, 16:14
Re: Tag mismatch - by Mechscape - 15.05.2010, 16:16
Re: Tag mismatch - by juice.j - 15.05.2010, 16:32

Forum Jump:


Users browsing this thread: 1 Guest(s)