20.12.2010, 18:58
You need to put the players name in the filename also the "dialogid" parameter comes before the "dialogtype" parameter.
1st question if you wish to create a file when they connect and not leave,
pawn Код:
ShowPlayerDialog(playerid, DIALOGID_GOES_HERE, DIALOG_STYLE_MSGBOX, "Info", "You ID: %s", "Done", "Cancel", playerid);
pawn Код:
public OnPlayerConnect(playerid)
{
new
File[68],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
format(File,sizeof(File), PlayerInfo, name);
if(!dini_Exists(File))
{
dini_Create(File);
dini_IntSet(File, "Score" ,0);
dini_IntSet(File, "Money" ,0);
}
SetPlayerScore(playerid, dini_Int(File, "Score"));
GivePlayerMoney(playerid, dini_Int(File, "Money"));
return 1;
}

