SA-MP Forums Archive
Saving/Login problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Saving/Login problem (/showthread.php?tid=401965)



Saving/Login problem - NighelN - 24.12.2012

So in my server when in on my level 7 account and log out and go on another new account it will give me the score/level/kills/deaths of the other account for some reason

Where do i have to look to fix this?


Re: Saving/Login problem - Typhome - 24.12.2012

You must reset variables in OnPlayerConnect or w/e account stats load system.


Re: Saving/Login problem - Biess - 24.12.2012

How do i reset the variables? (( he's my co-scripter ))


Re: Saving/Login problem - Konstantinos - 24.12.2012

Set any variable is necessary from your enum to 0 or -1 (it depends).


Re: Saving/Login problem - Biess - 24.12.2012

Thanks both


Re: Saving/Login problem - Typhome - 24.12.2012

Yeah, like Dwane said.

Like:
public OnPlayerConnect(playerid)
{
PlayerInfo[playerid][pReg] = 0;
PlayerInfo[playerid][pSex] = 0;
PlayerInfo[playerid][pAge] = 0;
etc...
return 1;
}

// Oh, you have fixed? Then it's okay.