something wrong with pawno
#3

still the same problem

here's the code of OnPlayerConnect:
pawn Code:
public OnPlayerConnect(playerid)
{
  F_OnPlayerConnect(playerid);

  new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
    new PlayerFile[128];
    format(PlayerFile,sizeof(PlayerFile),"UserFiles/%s.ini", playername);
    if(dini_Exists(PlayerFile))
    {
        GivePlayerMoney(playerid, dini_Int(PlayerFile, "Money"));
    }
    else
    {
        dini_Create(PlayerFile);
        dini_IntSet(PlayerFile, "Money",0);
    }
}
Reply


Messages In This Thread
something wrong with pawno - by ғαιιοцт - 22.12.2008, 14:36
Re: something wrong with pawno - by Zack9764 - 22.12.2008, 14:36
Re: something wrong with pawno - by ғαιιοцт - 22.12.2008, 14:40

Forum Jump:


Users browsing this thread: 1 Guest(s)