16.08.2014, 10:49
(
Последний раз редактировалось thaKing; 16.08.2014 в 10:58.
Причина: Fixed
)
Fixed.
if(line==i)
{
fclose(player);
return string;
}
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;
}