Fread
#1

Hi!

I need help with "Fread" files function.

First of all I'll show You what I've got here:

pawn Код:
// OnPlayerCommandText

// Command: "/NameSearch"
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Name Search", "Enter the account name You wanted to see if exists or not, here:", "Search", "Cancel");

// OnDialogResponse

    // Name Search
    if(dialogid == 1 && response == 1)
    {
 
    new File:players= fopen("Players.txt", io_read);
    while(fread(players, inputtext))
    {
          /*
          I've tried everything, also ******d it billion times and nothing.
          I just need a code here which is going to say if the searched name is registered (exists) or not.
          */

    }
    fclose(players);

    }
The main scripter of the server is not able to help me now, and I really need this as soon as possible, please!
Please, anybody?
Reply


Messages In This Thread
Fread - by ChrisYo - 10.01.2014, 20:08
Re: Fread - by Pottus - 10.01.2014, 20:14
Re: Fread - by Seif- - 10.01.2014, 20:15

Forum Jump:


Users browsing this thread: 1 Guest(s)