SA-MP Forums Archive
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=147890)



Tag Mismatch? - Antonio [G-RP] - 14.05.2010

pawn Код:
public LoadFactions()
{
new arrCoords[22][64];
new strFromFile2[256];
new File: file = fopen("/settings/factions.cfg", io_read);
if (file)
{
new idx;
while (idx < sizeof(FactionInfo))
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, ',');
FactionInfo[idx][fName] = floatstr(arrCoords[0]);
strmid(FactionInfo[idx][fLeader], arrCoords[1], 0, strlen(arrCoords[3]), 255);
FactionInfo[idx][fID] = floatstr(arrCoords[2]);
FactionInfo[idx][fRank1] = floatstr(arrCoords[3]);
FactionInfo[idx][fRank2] = floatstr(arrCoords[4]);
FactionInfo[idx][fRank3] = floatstr(arrCoords[5]);
FactionInfo[idx][fRank4] = floatstr(arrCoords[6]);
FactionInfo[idx][fRank5] = floatstr(arrCoords[7]);
idx++;
}
}
fclose(file);
return 1;
}
These are the lines I get "Tag Mismatch" on...

pawn Код:
FactionInfo[idx][fName] = floatstr(arrCoords[0]);
strmid(FactionInfo[idx][fLeader], arrCoords[1], 0, strlen(arrCoords[3]), 255);
FactionInfo[idx][fID] = floatstr(arrCoords[2]);
FactionInfo[idx][fRank1] = floatstr(arrCoords[3]);
FactionInfo[idx][fRank2] = floatstr(arrCoords[4]);
FactionInfo[idx][fRank3] = floatstr(arrCoords[5]);
FactionInfo[idx][fRank4] = floatstr(arrCoords[6]);
FactionInfo[idx][fRank5] = floatstr(arrCoords[7]);



Re: Tag Mismatch? - Antonio [G-RP] - 14.05.2010

That kind of makes sense, I'll see what I can do


Re: Tag Mismatch? - Antonio [G-RP] - 14.05.2010

Ah, I see what you meant, floatstr what there when it wass supposed to be strval, thanks Sief!

By the way, i'm working with your friend Bayler Were gonna own a server together soon, along with Lucifer.


Re: Tag Mismatch? - Bayler - 21.05.2010

The Fuck you are!