06.03.2011, 11:07
It is strange, i compiled it here and it worked 
The IRCInfo multidimensional variable is from GodFather Gamemode, and it is normally 10, so, i think that it will solve your problem
:
If it did not work yet, sorry, i did what i could.
I hope that i have helped

The IRCInfo multidimensional variable is from GodFather Gamemode, and it is normally 10, so, i think that it will solve your problem

If it did not work yet, sorry, i did what i could.
pawn Код:
public LoadIRC()
{
new arrCoords[5][64];
new strFromFile2[256];
new File: file = fopen("channels.cfg", io_read);
if (file)
{
for(new idx = 0; idx < 10; idx++)
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, '|');
strmid(IRCInfo[idx][iAdmin], arrCoords[0], 0, strlen(arrCoords[0]), 255);
strmid(IRCInfo[idx][iMOTD], arrCoords[1], 0, strlen(arrCoords[1]), 255);
strmid(IRCInfo[idx][iPassword], arrCoords[2], 0, strlen(arrCoords[2]), 255);
IRCInfo[idx][iNeedPass] = strval(arrCoords[3]);
IRCInfo[idx][iLock] = strval(arrCoords[4]);
printf("IRC:%d Admin:%s MOTD: %s Passwort: %s NeedPass: %d Lock: %d",idx,IRCInfo[idx][iAdmin],IRCInfo[idx][iMOTD],IRCInfo[idx][iPassword],IRCInfo[idx][iNeedPass],IRCInfo[idx][iLock]);
}
fclose(file);
}
return 1;
}
