10.01.2014, 20:08
Hi!
I need help with "Fread" files function.
First of all I'll show You what I've got here:
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?
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);
}
Please, anybody?