07.06.2015, 11:04
I am trying to add player name to a file
Quote:
stock FacAddMemberToFile(playerid) { new tmp[MAX_PLAYER_NAME + 2]; if(PlayerInfo[playerid][pFaction] == 1){ if(GetPlayerName(playerid, tmp, MAX_PLAYER_NAME)) { strcat(tmp, "\r\n"); // new line after the name return AddTextToFile("factions/LSPD.ini", tmp);} } return false; } |