Couple of Errors
#3

Thanks but it's somehow not working:

Errors:
selfmade.pwn(7895) : error 001: expected token: "-identifier-", but found ";"
selfmade.pwn(7896) : error 029: invalid expression, assumed zero
selfmade.pwn(7896) : error 001: expected token: ")", but found "sizeof"
selfmade.pwn(7896) : warning 215: expression has no effect
selfmade.pwn(7896) : error 001: expected token: ";", but found ")"
selfmade.pwn(7896) : fatal error 107: too many error messages on one line

Code:
Код:
public LoadIRC()
{
    new arrCoords[5][64];
    new strFromFile2[256];
    new File: file = fopen("channels.cfg", io_read);
    if (file)
    {
        new idx; // This ist 7895
        while (idx < sizeof(IRCInfo)) // This is 7896
        {
            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]);
            idx++;
        }
        fclose(file);
    }
    return 1;
}
Reply


Messages In This Thread
Couple of Errors - by sapsap - 06.03.2011, 10:52
Re: Couple of Errors - by rjjj - 06.03.2011, 10:59
Re: Couple of Errors - by sapsap - 06.03.2011, 11:01
Re: Couple of Errors - by rjjj - 06.03.2011, 11:07
Re: Couple of Errors - by sapsap - 06.03.2011, 11:16

Forum Jump:


Users browsing this thread: 2 Guest(s)