05.02.2013, 00:51
pawn Код:
WritePlayer(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;
}
Pruevalo Ahora y dime.