I always wonder what affect to this "information" and why it show on compile?
#4

To call code inside the OnPlayerDisconnect callback, it would have to be like this:

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
   if(IsPlayerLoggedIn(playerid)) SaveChar(playerid);
   return 1;
}
Otherwise, this would work too:

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
   SaveChar(playerid);
   return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)