12.04.2016, 18:53
When a player is logging with the same ID as the previous player was it's loading the prev player's database instead of the right one
|
Can you show us the part of your code which handles loading player data upon log in?
|
|
Can you show us the part of your code which handles loading player data upon log in?
|
|
You have to reset their stats upon disconnecting to prevent such things.
|
public OnPlayerDisconnect(playerid, reason)
{
if(Logged[playerid] == true){SavePlayerFile(playerid);}
ResetPlayerVariables(playerid);
return 1;
}
stock ResetPlayerVariables(playerid)
{
DB[playerid][Password] = EOS;
Logged[playerid] = false;
return 1;