04.05.2009, 11:54
Quote:
Originally Posted by Mikkel
when you log off it doesnt save anything, and when you try to connect to the server, it says you are already logged in, it's quite a fatal error due to the fact i forced every client to log off at OnPlayerDisconnect, even tho i did that, it still says it's already logged in.
|
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
........
if (IsPlayerLoggedIn[playerid])
{
dini_IntSet(file, "Score", GetPlayerScore(playerid));
dini_IntSet(file, "Money", GetPlayerMoney(playerid));
}
IsPlayerLoggedIn[playerid]=0; // IsPlayerLoggedIn[playerid]=false ?!
}