Tag Mismatch?
#1

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


Messages In This Thread
Tag Mismatch? - by Antonio [G-RP] - 14.05.2010, 22:16
Re: Tag Mismatch? - by Antonio [G-RP] - 14.05.2010, 22:20
Re: Tag Mismatch? - by Antonio [G-RP] - 14.05.2010, 22:22
Re: Tag Mismatch? - by Bayler - 21.05.2010, 07:58

Forum Jump:


Users browsing this thread: 1 Guest(s)