dini help
#5

Quote:
Originally Posted by xir
Посмотреть сообщение
you mean the dialog under "onplayerconnect" ?
Yup. Something like:
pawn Код:
public OnPlayerConnect(playerid)
{
    ShowPlayerDialog(playerid, ..................);
    return 1;
}
+

Your OnPlayerDisconnect code is kinda buggy.
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    if(!fexist(file))// this shoud be like this.
    {//                 because it file doesn't exitst than you will create one.
          dini_Create(file);
    }
    dini_IntSet(file, "PCash", GetPlayerPCash(playerid));
    ResetPlayerPCash(playerid);
    return 1;
}
Reply


Messages In This Thread
dini help - by xir - 05.02.2011, 10:25
Re: dini help - by xir - 05.02.2011, 12:11
Re: dini help - by xRyder - 05.02.2011, 12:14
Re: dini help - by xir - 05.02.2011, 12:18
Re: dini help - by xRyder - 05.02.2011, 12:20
Re: dini help - by xir - 05.02.2011, 12:27
Re: dini help - by xRyder - 05.02.2011, 12:33
Re: dini help - by xir - 05.02.2011, 12:35
Re: dini help - by xRyder - 05.02.2011, 12:37
Re: dini help - by xir - 05.02.2011, 12:46

Forum Jump:


Users browsing this thread: 1 Guest(s)