Saving/Login problem
#1

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?
Reply
#2

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

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

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

Thanks both
Reply
#6

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)