Saving error
#7

I had this issue before, it happens because you didn't reset the variables when player first registers, which means he'll have the same variables values of the last guy who had his ID.

OnPlayerConnect, reset the enums/player variables:
pawn Код:
public OnPlayerConnect(playerid)
{
    RestartVariables(playerid);
    return 1;
}

stock RestartVariables(playerid)
{
    // reset variables to avoid random players getting your powers
    Admin[playerid] = 0.
    // etc
    return 1;
}
Reply


Messages In This Thread
Saving error - by DaniceMcHarley - 12.11.2013, 12:43
Re: Saving error - by Jankingston - 12.11.2013, 13:04
Re: Saving error - by Wizzy951 - 12.11.2013, 13:04
Re: Saving error - by DaniceMcHarley - 12.11.2013, 13:08
Re: Saving error - by Wizzy951 - 12.11.2013, 13:23
Re: Saving error - by DaniceMcHarley - 12.11.2013, 13:37
Re: Saving error - by Loot - 12.11.2013, 14:53
Re: Saving error - by DaniceMcHarley - 12.11.2013, 15:43

Forum Jump:


Users browsing this thread: 1 Guest(s)