Help with fread.
#7

So, I tryed to check, but doesn't show the dielog

pawn Код:
if(dialogid == DIALOG_MDCNOME3)
    {
        new count = 0, masterstring[1024], tmpstring[128], line[128];
        format(SkillBase, sizeof(SkillBase), "LSPD/Suspects/%s.ini", inputtext);
        new File:arquivo = fopen(SkillBase, io_read);
        while(fread(arquivo, line))
        {
            count ++;
            format(tmpstring, sizeof(tmpstring), "%s\n", line);
            strins(masterstring, tmpstring, strlen(tmpstring));
            if(count == 20) break;
        }
        ShowPlayerDialog(playerid, -1, DIALOG_STYLE_MSGBOX, "-", masterstring, "Ok", "Fechar");
        SCM(playerid, -1, masterstring);
        return 1;
    }
Reply


Messages In This Thread
Help with fread. - by Ricop522 - 14.08.2011, 04:20
Re: Help with fread. - by [BEP]AcerPilot - 14.08.2011, 04:27
Re: Help with fread. - by Ricop522 - 14.08.2011, 04:37
Re: Help with fread. - by [BEP]AcerPilot - 14.08.2011, 04:40
Re: Help with fread. - by Ricop522 - 14.08.2011, 04:53
Re: Help with fread. - by [BEP]AcerPilot - 14.08.2011, 04:55
Re: Help with fread. - by Ricop522 - 14.08.2011, 05:07
Re: Help with fread. - by Lorenc_ - 14.08.2011, 05:38

Forum Jump:


Users browsing this thread: 2 Guest(s)