14.03.2011, 20:45
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?
And if thats not the problem then what is?
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;
}