03.10.2012, 14:28
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(strcmp(string,nmbr,true) == 0)// Help me on this please
{
return -1; // if Checkph returns false the number is already taken.
}
}
fclose(file);
return 0;
}