29.07.2012, 00:05
Quote:
try
pawn Код:
|
DCbank holds an empty value and you're formatting your file to something empty.
I think you're better off using this:
pawn Код:
public OnPlayerDisconnect(playerid,reason)
{
new Name[24]; GetPlayerName(playerid,Name,24);
new file[100]; format(file,100,"%s",Name);
dini_IntSet(file,"Balance",pBankInfo[playerid][PLAYER_BALANCE]);
dini_IntSet(file,"InBank",pBankInfo[playerid][PLAYER_INBANK]);
pBankInfo[playerid][PLAYER_INBANK] = 0;
pBankInfo[playerid][PLAYER_BALANCE] = 0;
return 1;
}
If you're not going to rename your file, you can remove the entire file array and just go with Name instead of the file.