Fremove.
#1

I have this code but the fremove function is not working ..
pawn Код:
new file[64];


    if(dialogid == DIALOG_REG2)
    {
      if(RegistrationStep[playerid] == 2)
        {
        if(!response) // If they clicked 'Cancel' or pressed esc
        {
        SendClientMessage(playerid, COLOR_RED, "Enter your age correctly next time.");
        format(file,sizeof(file),"/Users/%s.ini",GetName(playerid));
        if(fexist(file))
        {
        fremove(file);
        }
            Kick(playerid);
        }
        else // Pressed ENTER or clicked 'Login' button
        {
            new age = strval(inputtext);
            if(age < 16 || age > 80)
            {
                ShowPlayerDialog(playerid, DIALOG_REG2, DIALOG_STYLE_INPUT, "BLABLALBA", "BLABLALBA(BLABLALBA) ?", "Enter", "Exit");
                SendClientMessage(playerid, COLOR_RED, "Please enter your age(16-80).");
                return 0;
            }
            PlayerInfo[playerid][pAge] = age;
            format(string, sizeof(string), "BLABLALBA",PlayerInfo[playerid][pAge]);
            SendClientMessage(playerid, COLOR_LIGHTRED, string);
            RegistrationStep[playerid] = 3;
            ShowPlayerDialog(playerid, DIALOG_REG3, DIALOG_STYLE_LIST, " BLABLALBA", "Los Santos\nLas Venturas\nSan Fierro", "Select", "Exit");
            }
        }
        return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText.
    }
Can someone help me ?
Reply


Messages In This Thread
Fremove. - by dorperez - 27.04.2013, 16:31
Re: Fremove. - by dorperez - 27.04.2013, 19:49
Re: Fremove. - by Chenko - 27.04.2013, 20:23
Re: Fremove. - by dorperez - 27.04.2013, 20:46
Re: Fremove. - by Chenko - 27.04.2013, 20:50
Re: Fremove. - by RVRP - 27.04.2013, 20:51
Re: Fremove. - by dorperez - 27.04.2013, 21:09
Re: Fremove. - by Chenko - 27.04.2013, 21:17
Re: Fremove. - by Glad2BeHere - 27.04.2013, 21:36
Re: Fremove. - by dorperez - 28.04.2013, 20:33

Forum Jump:


Users browsing this thread: 1 Guest(s)