Не сохраняет аккаунт.
Код
public IsAccountRegister(playerid)
{
new rows;
cache_get_row_count(rows);
SetPVarInt(playerid, "time_to_kick", GetTickCount() + 30000);
if(!rows) return ShowPlayerRegister(playerid);
else
{
cache_get_value_name(0, "password", PlayerInfo[playerid][pPassword], 32);
cache_get_value_name(0, "pin", PlayerInfo[playerid][pPin], 10);
cache_get_value_name(0, "lip", PlayerInfo[playerid][pIP], 16);
cache_get_value_name_int(0, "typepin", PlayerInfo[playerid][pAskForPin]);
ShowPlayerAuth(playerid, -1);
}
return true;
}
вот saveaccount
Код
stock SaveAccount(playerid)
{
new query[386];
mysql_format(mysql_connection, query, sizeof(query), "UPDATE `accounts` SET `lip`='%s', `kills`=%d,`deaths`=%d, `mute`=%d, jail=%d, donate=%d WHERE `name`='%s'" , PlayerInfo[playerid][pIP], PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], PlayerInfo[playerid][pMute], PlayerInfo[playerid][pJail], PlayerInfo[playerid][pDonate], PlayerInfo[playerid][pName]);
return mysql_tquery(mysql_connection, query, "", "");
}