Saving Gender DINI || Registration problem
#1

I got this

pawn Код:
public OnAgeGiven(playerid, Age[])
{

    new string2[128];
    format(string2, sizeof(string2), "users/%s.ini", GetPlayerNameEx(playerid));
    new File:example = fopen(string2, io_append);
    if(example)
    {
        strmid(PlayerInfo[playerid][pSex], Sex, 0, strlen(Sex), 255);
        new ap[32];
        format(ap, 32, "Sex=%s\n", PlayerInfo[playerid][pSex]);fwrite(example, ap);
        fclose(example);
    //  SendClientMessage(playerid, COLOR_RED, "Step 2 Completed!");
    //  SetPlayerCameraPos(playerid, -2274.2588,110.6220,66.7716);
    //  SetPlayerCameraLookAt(playerid, -2309.3486,105.3977,35.5809);
        ShowPlayerDialog(playerid,4,DIALOG_STYLE_LIST,"What's your gender?","Male\nFemale","Continue","Cancel");

    }
    return 1;
}
And i dont know how to make it save, i know i didn't give enought codes , but tell me what should i put and i'll put it here
Reply


Messages In This Thread
Saving Gender DINI || Registration problem - by Jaber_Brown - 15.08.2012, 23:11
Re : Saving Gender DINI || Registration problem - by Sandiel - 15.08.2012, 23:15
Re : Saving Gender DINI || Registration problem - by Jaber_Brown - 15.08.2012, 23:18
Re : Saving Gender DINI || Registration problem - by Jaber_Brown - 16.08.2012, 01:51

Forum Jump:


Users browsing this thread: 1 Guest(s)