Annoying Bug
#1

Ok, whenever someone joins my server, that have the same stats as everyone else. I think its my save public doing it. Can someone fix it so it does not save everyones account as the same?

pawn Код:
public Save(playerid)
{
    if(playerdata[playerid][logged]==1)
    {
        new svname[25], querys[600];
        GetPlayerName(playerid,svname,sizeof(svname));
        format(querys,sizeof(querys),"UPDATE `accounts` SET `level`='%d',`Joins`='%d',`Kills`='%d',`Kicks`='%d',`Deaths`='%d',`Money`='%d',`Score`='%d',`MoneyC`='%d',`ScoreC`='%d',`Gender`='%d'",playerdata[playerid][level],playerdata[playerid][Joins],playerdata[playerid][Kills],playerdata[playerid][Kicks],playerdata[playerid][Deaths],playerdata[playerid][Money],playerdata[playerid][Score],playerdata[playerid][MoneyC],playerdata[playerid][ScoreC],playerdata[playerid][Gender],svname);
        mysql_query(querys);
    }
    return 1;
}
And if thats not the problem then what is?
Reply


Messages In This Thread
Annoying Bug - by Rokzlive - 14.03.2011, 20:45
AW: Annoying Bug - by xerox8521 - 14.03.2011, 22:46
Re: Annoying Bug - by WackoX - 14.03.2011, 22:50
Re: Annoying Bug - by Rokzlive - 15.03.2011, 00:25
AW: Annoying Bug - by Meta - 15.03.2011, 00:56

Forum Jump:


Users browsing this thread: 1 Guest(s)