[Error] Sistema de Familias
#7

Veo que el problema no esta al guardalas sino al crealas ya que al crearlas deberia guardarse el archivo .ini

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;
}
Reply


Messages In This Thread
[Error] Sistema de Familias - by Charlie009 - 05.04.2013, 02:03
Respuesta: [Error] Sistema de Familias - by Host - 05.04.2013, 02:52
Respuesta: [Error] Sistema de Familias - by JustBored - 05.04.2013, 08:46
Re: [Error] Sistema de Familias - by Charlie009 - 05.04.2013, 13:11
Respuesta: [Error] Sistema de Familias - by Host - 05.04.2013, 13:18
Re: Respuesta: [Error] Sistema de Familias - by Charlie009 - 05.04.2013, 13:28
Respuesta: [Error] Sistema de Familias - by Host - 05.04.2013, 13:31
Re: Respuesta: [Error] Sistema de Familias - by Charlie009 - 05.04.2013, 13:43
Respuesta: [Error] Sistema de Familias - by Host - 05.04.2013, 13:47
Respuesta: [Error] Sistema de Familias - by JuliPera - 06.04.2013, 06:16

Forum Jump:


Users browsing this thread: 1 Guest(s)