Tag Mismatch - 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: Tag Mismatch (
/showthread.php?tid=255130)
Tag Mismatch -
titanak - 14.05.2011
Hello . i have tryd so many ways to fix this but didn't found help yet.
pawn Код:
public LoadDonatorList()
{
new arrCoords[2][64];
new strFromFile2[256];
new File: file = fopen("DonatorList.cfg", io_read);
if (file)
{
new idx;
while (idx < sizeof(DonatorList))
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, '|');
strmid(DonatorList[idx][Name], arrCoords[0], 0, strlen(arrCoords[0]), 255);
DonatorList[idx][Amount] = floatstr(arrCoords[1]); // < --- Line 17017 !!
idx++;
}
fclose(file);
}
return 1;
}
Error
Код:
(17017) : warning 213: tag mismatch
if someone have time to help , i am very thanks then.
Re: Tag Mismatch -
CyNiC - 14.05.2011
DonatorList have a Float tag in declaration?
Re: Tag Mismatch -
titanak - 14.05.2011
yeah everything is right.
Re: Tag Mismatch -
MadeMan - 14.05.2011
Like this?
Re: Tag Mismatch -
Typhome - 14.05.2011
Do you have
Float:Amount?
(DonatorList[idx][Amount]) If no, then set it and try again.
Re: Tag Mismatch -
titanak - 14.05.2011
Thanks for trying but the problem was with floatstr i replaced it with strval