05.02.2013, 01:01
pawn Код:
WritePlayer(const text[],playerid, bool:filestart)
{
new string[256],name[MAX_PLAYER_NAME];
new File:player;
GetPlayerName(playerid,name,sizeof(name));
format(string,256,"Players/%s.ini",name);
player = fopen(string, io_append);
if(filestart) fwrite(player,text);
else format(string,256,"\n%s",text), fwrite(player,string);
fclose(player);
return string;
}