23.07.2015, 15:59
(
Последний раз редактировалось HardWar; 23.07.2015 в 16:02.
Причина: Esqueci fclose
)
pawn Код:
new File:file = fopen("arquivo.ini", io_read);
new linha[MAX_PLAYER_NAME+1];
new nomes[128];
while(fread(file, linha)) {
strins(nomes, linha, strlen(nomes));
}
fclose(file);
if(strfind(nomes, "Fulano") != -1) {
print("Achou fulano!");
}