Question

Проблема заключается  в том что один акк заменяет все остальные акки в БД!

ссылка на изображение

 

 

Edited by keyl1337
Причина: Поправил шрифт

Заметка от keyl , создано

Впредь используйте 16-20 шрифты для оформления темы.

Share this post


Link to post

3 answers to this question

  • 0

Покажите код :/

Share this post


Link to post
  • 0

@Andrei_Morozov, условие в SQL запросе скорее всего забыли написать. 

Share this post


Link to post
  • 0
27 минут назад, odosenok сказал:

@Andrei_Morozov, условие в SQL запросе скорее всего забыли написать. 

 

Я так понял это из-за сохранения акков!

 

Спойлер

stock SaveAcc(playerid) // Сохранение акаунта
{
	new query[2048], delimit_Time[10], delimit_Lic[20], delimit_SkillGun[90], Float: PosX, Float: PosY, Float: PosZ, Float: PosA, Float: Heal;
	GetPlayerPos(playerid, PosX, PosY, PosZ);
	GetPlayerFacingAngle(playerid, PosA);
	new Interiors = GetPlayerInterior(playerid);
	new Worlds = GetPlayerVirtualWorld(playerid);
	GetPlayerHealth(playerid, Heal);

	format(delimit_Time, 20, "%02i:%02i:%02i", PI[playerid][Time][0], PI[playerid][Time][1], PI[playerid][Time][2]);
	
	format(delimit_Lic, 20, "%i|%i|%i|%i|%i|%i|%i|%i", PI[playerid][Lic][0], PI[playerid][Lic][1],
	PI[playerid][Lic][2], PI[playerid][Lic][3], PI[playerid][Lic][4],
	PI[playerid][Lic][5], PI[playerid][Lic][6], PI[playerid][Lic][7]);

	format(delimit_SkillGun, 90, "%i|%i|%i|%i|%i|%i|%i", PI[playerid][SkillGun][0], PI[playerid][SkillGun][1],
	PI[playerid][SkillGun][2], PI[playerid][SkillGun][3], PI[playerid][SkillGun][4],
	PI[playerid][SkillGun][5], PI[playerid][SkillGun][6]);
	
	query = "UPDATE "T_PLAYER" SET ";
	acc_str_strcat(query, sizeof(query), "Name", GetName(playerid));
	acc_str_strcat(query, sizeof(query), "Password", PI[playerid][Password]);
	acc_str_strcat(query, sizeof(query), "Email", PI[playerid][Email]);
	acc_int_strcat(query, sizeof(query), "EmailAuth", PI[playerid][EmailAuth]);
	acc_str_strcat(query, sizeof(query), "Referal", PI[playerid][Referal]);
	acc_int_strcat(query, sizeof(query), "Spawn", PI[playerid][Spawn]);
	acc_float_strcat(query, sizeof(query), "Pos_X", PosX);
	acc_float_strcat(query, sizeof(query), "Pos_Y", PosY);
	acc_float_strcat(query, sizeof(query), "Pos_Z", PosZ);
	acc_float_strcat(query, sizeof(query), "Pos_A", PosA);
	acc_int_strcat(query, sizeof(query), "Interior", Interiors);
	acc_int_strcat(query, sizeof(query), "World", Worlds);
	acc_int_strcat(query, sizeof(query), "Sex", PI[playerid][Sex]);
	acc_int_strcat(query, sizeof(query), "Skin", PI[playerid][Skin]);
	acc_int_strcat(query, sizeof(query), "Age", PI[playerid][Age]);
	acc_int_strcat(query, sizeof(query), "Exp", PI[playerid][Exp]);
	acc_int_strcat(query, sizeof(query), "Level", PI[playerid][Level]);
	acc_int_strcat(query, sizeof(query), "Job", PI[playerid][Job]);
	acc_int_strcat(query, sizeof(query), "Money", GetMoney(playerid));
	acc_int_strcat(query, sizeof(query), "PayMoney", PI[playerid][PayMoney]);
	acc_int_strcat(query, sizeof(query), "Donat", PI[playerid][Donat]);
	acc_str_strcat(query, sizeof(query), "Time", delimit_Time);
	acc_float_strcat(query, sizeof(query), "Health", Heal);
	acc_int_strcat(query, sizeof(query), "Zakon", PI[playerid][Zakon]);
	acc_int_strcat(query, sizeof(query), "Wanted", PI[playerid][Wanted]);
	acc_int_strcat(query, sizeof(query), "Voennik", PI[playerid][Voennik]);
	acc_str_strcat(query, sizeof(query), "Lic", delimit_Lic);
	acc_int_strcat(query, sizeof(query), "Mute", PI[playerid][Mute]);
	acc_int_strcat(query, sizeof(query), "MuteTime", PI[playerid][MuteTime]);
	acc_str_strcat(query, sizeof(query), "MuteOffReason", PI[playerid][MuteOffReason]);
	acc_int_strcat(query, sizeof(query), "Jail", PI[playerid][Jail]);
	acc_int_strcat(query, sizeof(query), "JailTime", PI[playerid][JailTime]);
	acc_str_strcat(query, sizeof(query), "JailOffReason", PI[playerid][JailOffReason]);
	acc_int_strcat(query, sizeof(query), "Warn", PI[playerid][Warn]);
	acc_int_strcat(query, sizeof(query), "WarnTime", PI[playerid][WarnTime]);
	acc_str_strcat(query, sizeof(query), "WarnOffReason", PI[playerid][WarnOffReason]);
	acc_int_strcat(query, sizeof(query), "Vip", PI[playerid][Vip]);
	acc_int_strcat(query, sizeof(query), "VipTime", PI[playerid][VipTime]);
	acc_int_strcat(query, sizeof(query), "Pasport", PI[playerid][Pasport]);
	acc_int_strcat(query, sizeof(query), "Phone", PI[playerid][Phone]);
	acc_int_strcat(query, sizeof(query), "SimCard", PI[playerid][SimCard]);
	acc_int_strcat(query, sizeof(query), "PhoneMoney", PI[playerid][PhoneMoney]);
	acc_int_strcat(query, sizeof(query), "CheckCode", PI[playerid][CheckCode]);
	acc_int_strcat(query, sizeof(query), "Code", PI[playerid][Code]);
	acc_int_strcat(query, sizeof(query), "Google", PI[playerid][Google]);
	acc_str_strcat(query, sizeof(query), "GoogleAuth", PI[playerid][GoogleAuth]);
	acc_int_strcat(query, sizeof(query), "WalkStyle", PI[playerid][WalkStyle]);
	acc_int_strcat(query, sizeof(query), "TextStyle", PI[playerid][TextStyle]);
	acc_int_strcat(query, sizeof(query), "MoneyCase", PI[playerid][MoneyCase]);
	acc_int_strcat(query, sizeof(query), "Kolokol", PI[playerid][Kolokol]);
	acc_int_strcat(query, sizeof(query), "DamageInfo", PI[playerid][DamageInfo]);
	acc_int_strcat(query, sizeof(query), "MaskStatus", PI[playerid][MaskStatus]);
	acc_int_strcat(query, sizeof(query), "PasswordStatus", PI[playerid][PasswordStatus]);
	acc_int_strcat(query, sizeof(query), "SpawnStatus", PI[playerid][SpawnStatus]);
	acc_int_strcat(query, sizeof(query), "FreezeInt", PI[playerid][FreezeInt]);
	acc_int_strcat(query, sizeof(query), "Family", PI[playerid][Family]);
	acc_str_strcat(query, sizeof(query), "FamilyData", PI[playerid][FamilyData]);
	acc_int_strcat(query, sizeof(query), "Frac", PI[playerid][Frac]);
	acc_int_strcat(query, sizeof(query), "FracLeader", PI[playerid][FracLeader]);
	acc_str_strcat(query, sizeof(query), "FracData", PI[playerid][FracData]);
	acc_int_strcat(query, sizeof(query), "FracRang", PI[playerid][FracRang]);
	acc_int_strcat(query, sizeof(query), "FracWarn", PI[playerid][FracWarn]);
	acc_str_strcat(query, sizeof(query), "NewName", PI[playerid][NewName]);
	acc_int_strcat(query, sizeof(query), "StatusNewName", PI[playerid][StatusNewName]);
	acc_str_strcat(query, sizeof(query), "SkillGun", delimit_SkillGun);
	acc_int_strcat(query, sizeof(query), "ShtrafMVD", PI[playerid][ShtrafMVD]);
	acc_int_strcat(query, sizeof(query), "ShtrafPdd", PI[playerid][ShtrafPdd]);
	acc_int_strcat(query, sizeof(query), "House", PI[playerid][House]);
	acc_int_strcat(query, sizeof(query), "Biz", PI[playerid][Biz]);
	acc_int_strcat(query, sizeof(query), "TCompany", PI[playerid][TCompany]);
	acc_int_strcat(query, sizeof(query), "CheckAutoShkola", PI[playerid][CheckAutoShkola]);
	//
	strdel(query, strlen(query)-1, strlen(query));
	mysql_format(mysql, query,sizeof(query),"%s WHERE `ID` = '%i' LIMIT 1", query, PI[playerid][ID]);
	mysql_tquery(mysql, query);
	return true;
}

 

 

Share this post


Link to post
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • dfhfyyjftyfthtj
      By dfhfyyjftyfthtj
      Приветствую, на днях решил опробовать новый хостинг (ru hoster), долго мучился с запуском мода, который прекрасно запускался на другом хостинге. 
      Появилась новая проблема: сервер крашит в рандомный момент по непонятной причине. Подскажите, пожалуйста, в чем может быть проблема? пробовал и отключать crashdetect, но он все равно крашится и автоматически перезапускается хостингом после краша.
      Логи: