something wrong with pawno
#1

There is something wrong with my pawno :S
I try to create a userfile with Dini
but nothing happens... and when I remove the #include <Dini> from the script, it doesn't even gives errors :S
I can even delete #include <a_samp>

does anyone know how this is possible?
Reply
#2

Re-install Pawno?
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)