Reseting variables
#1

Hello everyone!
I was just wondering whether I'm properly reseting player variables in order to avoid new registered player getting previous player stats who had the same played ID . Also is there way to improve this code ?

pawn Code:
public OnPlayerConnect(playerid)
{
    ResVars(playerid);
    return 1;
}

stock ResVars(playerid)
{
   
    level[playerid] = 0.
    //and so on
    return 1;
}
Reply


Messages In This Thread
Reseting variables - by Wizzy951 - 29.06.2014, 17:09
Re: Reseting variables - by AMouldyLemon - 29.06.2014, 17:14
Re: Reseting variables - by Dignity - 29.06.2014, 17:16
Re: Reseting variables - by Stinged - 29.06.2014, 17:24

Forum Jump:


Users browsing this thread: 1 Guest(s)