05.02.2011, 12:20
Yup. Something like:
+
Your OnPlayerDisconnect code is kinda buggy.
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;
}