22.12.2008, 14:40
still the same problem 
here's the code of OnPlayerConnect:

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);
}
}