Register/Login error [FIXED]
#1

Fixed.
Reply
#2

Added line 272 and
Reply
#3

pawn Код:
if(line==i)
{
     fclose(player);
     return string;
}
try this, it should work
Reply
#4

pawn Код:
ReadPlayer(line, playerid)
{
    new string[256], name[MAX_PLAYER_NAME];
    new File:player;
    GetPlayerName(playerid, name, sizeof(name));
    format(string, 256, "player_accounts/%s.ini", name);
    player = fopen(string, io_read);
    for(new i=1; i<=line; i++)
    {
        fread(player, string);
        if(line==i)
        {
            fclose(player);
            return string;
        }
    }
    return string;
}
You should read the errors. I compiled everything successfully.
Reply
#5

Read this article and this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)