[HELP] Info Wont Save
#4

You need to put the players name in the filename also the "dialogid" parameter comes before the "dialogtype" parameter.
pawn Код:
ShowPlayerDialog(playerid, DIALOGID_GOES_HERE, DIALOG_STYLE_MSGBOX, "Info", "You ID: %s", "Done", "Cancel", playerid);
1st question if you wish to create a file when they connect and not leave,
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;
}
Reply


Messages In This Thread
[HELP] Info Wont Save - by Larsey123IsMe - 20.12.2010, 14:24
Re: [HELP] Info Wont Save - by Larsey123IsMe - 20.12.2010, 18:40
Re: [HELP] Info Wont Save - by blackwave - 20.12.2010, 18:56
Re: [HELP] Info Wont Save - by iggy1 - 20.12.2010, 18:58
Re: [HELP] Info Wont Save - by Larsey123IsMe - 20.12.2010, 20:20
Re: [HELP] Info Wont Save - by blackwave - 20.12.2010, 20:22
Re: [HELP] Info Wont Save - by Larsey123IsMe - 20.12.2010, 20:38
Re: [HELP] Info Wont Save - by blackwave - 20.12.2010, 20:39
Re: [HELP] Info Wont Save - by Larsey123IsMe - 20.12.2010, 21:19
Re: [HELP] Info Wont Save - by WillyP - 20.12.2010, 21:34

Forum Jump:


Users browsing this thread: 1 Guest(s)