Help with fread.
#8

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%s\n", tmpstring, 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;
}
Try that.

Edit: Change the goddamn Dialog ID, set it to 'NULL (0)'
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: 1 Guest(s)