05.04.2013, 13:31
Veo que el problema no esta al guardalas sino al crealas ya que al crearlas deberia guardarse el archivo .ini
Intenta haci
Intenta haci
pawn Код:
CMD:fcreate(playerid, params[])
{
new string[128], playerb, idx;
if(JugadorInfo[playerid][jAdmin] < 4 && !JugadorInfo[playerid][jGangMod]) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
if(sscanf(params, "ui", playerb, idx)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fcreate [playerid] [slot]");
if(idx < 1 || idx > 10) return SendClientMessage(playerid, COLOR_GREY, "Families are between 1 and 10.");
if(FamInfo[idx][fTaken]) return SendClientMessage(playerid, COLOR_GREY, "Family slot is already in use.");
FamInfo[idx][fTaken] = 1;
FamInfo[idx][fMembers] ++;
JugadorInfo[playerb][jFam] = idx;
JugadorInfo[playerb][jFamRank] = 6;
FamInfo[idx][fStrikes] = 0;
format(FamInfo[idx][fLeader], MAX_PLAYER_NAME, "%s", RPN(playerb));
format(string, sizeof(string), "AdmWarn: %s has given %s family slot %d.", RPN(playerid), RPN(playerb), idx);
SendAdminMessage(COLOR_DARKRED, 1, string);
Log("logs/families.log", string);
format(string, sizeof(string), " %s has given you family slot {33AA33}%d {33CCFF}ownership.", RPN(playerid), idx);
SendClientMessage(playerb, COLOR_LIGHTBLUE, string);
return fcreate;
}