15.08.2012, 23:11
I got this
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
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;
}