03.10.2012, 14:27
pawn Код:
stock CheckPh(nmbr)
{
new string[20];
new File: file = fopen("phone.cfg", io_read);
if(!fexist("phone.cfg")) { print("Couldn't find phone.cfg, created file."); fcreate("phone.cfg"); return 0; }
while(fread(file, string))
{
if(strval(string) == nmbr)
{
fclose(file);
return 1;
}
}
fclose(file);
return 0;
}