07.02.2013, 18:03
To call code inside the OnPlayerDisconnect callback, it would have to be like this:
Otherwise, this would work too:
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
if(IsPlayerLoggedIn(playerid)) SaveChar(playerid);
return 1;
}
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
SaveChar(playerid);
return 1;
}