14.08.2011, 05:38
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;
}
Edit: Change the goddamn Dialog ID, set it to 'NULL (0)'