Вопросы

Спойлер

stock SaveAccount(playerid)
{
	if(PlayerLogged[playerid] == false || IsPlayerConnected(playerid) == 0) return 1;
	new zapros[128];

	format(PI[playerid][pSettings],64,"%i, %i, %i, %i, %i, %i, %i",PI[playerid][pSetting][0],PI[playerid][pSetting][1],PI[playerid][pSetting][2],PI[playerid][pSetting][3],PI[playerid][pSetting][4],PI[playerid][pSetting][5],PI[playerid][pSetting][5]);
	format(PI[playerid][pImproves],64,"%i, %i, %i, %i",PI[playerid][pImprove][0],PI[playerid][pImprove][1],PI[playerid][pImprove][2],PI[playerid][pImprove][3]);
	format(PI[playerid][pLics],64,"%i, %i, %i, %i",PI[playerid][pLic][0],PI[playerid][pLic][1],PI[playerid][pLic][2],PI[playerid][pLic][3]);
	format(PI[playerid][pRepcars],64,"%i, %i",PI[playerid][pRepcar][0],PI[playerid][pRepcar][1]);

	format(cVehcom3[playerid],128,"%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d/%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d",
	cVehcoms1[playerid][0],cVehcoms1[playerid][1],cVehcoms1[playerid][2],cVehcoms1[playerid][3],cVehcoms1[playerid][4],
	cVehcoms1[playerid][5],cVehcoms1[playerid][6],cVehcoms1[playerid][7],cVehcoms1[playerid][8],cVehcoms1[playerid][9],
	cVehcoms1[playerid][10],cVehcoms1[playerid][11],cVehcoms1[playerid][12],cVehcoms1[playerid][13],
	cVehcoms2[playerid][0],cVehcoms2[playerid][1],cVehcoms2[playerid][2],cVehcoms2[playerid][3],cVehcoms2[playerid][4],
	cVehcoms2[playerid][5],cVehcoms2[playerid][6],cVehcoms2[playerid][7],cVehcoms2[playerid][8],cVehcoms2[playerid][9],
	cVehcoms2[playerid][10],cVehcoms2[playerid][11],cVehcoms2[playerid][12],cVehcoms2[playerid][13]);

	new string[3128] = "UPDATE "T_ACCOUNTS" SET";

	f(string, "%s `name` = '%s', ",                string, PI[playerid][pName]);
	f(string, "%s `ip` = '%s', ",                  string, PI[playerid][pIP]);
	f(string, "%s `admin` = '%d', ",               string, PI[playerid][pAdmin]);
	f(string, "%s `securitycode` = '%i', ",        string, PI[playerid][pSecurityCode]);
	f(string, "%s `level` = '%d', ",               string, PI[playerid][pLevel]);
	f(string, "%s `cash` = '%d', ",                string, PI[playerid][pCash]);
	f(string, "%s `bank` = '%d', ",                string, PI[playerid][pBank]);
	f(string, "%s `exp` = '%d', ",                 string, PI[playerid][pExp]);
	f(string, "%s `leader` = '%d', ",              string, PI[playerid][pLeader]);
	f(string, "%s `templeader` = '%d', ",          string, PI[playerid][pTempLeader]);
	f(string, "%s `member` = '%d', ",              string, PI[playerid][pMember]);
	f(string, "%s `rank` = '%d', ",                string, PI[playerid][pRank]);
	f(string, "%s `warn` = '%d', ",                string, PI[playerid][pWarn]);
	f(string, "%s `sex` = '%d', ",                 string, PI[playerid][pSex]);
	f(string, "%s `age` = '%d', ",                 string, PI[playerid][pAge]);
	f(string, "%s `model` = '%d', ",               string, PI[playerid][pModel]);
	f(string, "%s `memberskin` = '%d', ",          string, PI[playerid][pMemberSkin]);
    f(string, "%s `lic` = '%s', ",                 string, PI[playerid][pLics]);
	f(string, "%s `mute` = '%d', ",                string, PI[playerid][pMuted]);
	f(string, "%s `pick` = '%d', ",                string, PI[playerid][pPick]);
	f(string, "%s `checktime` = '%d', ",           string, PI[playerid][pCheckTime]);
	f(string, "%s `news` = '%d', ",                string, PI[playerid][pNews]);
	f(string, "%s `phonenumber` = '%d', ",         string, PI[playerid][pPhoneNumber]);
	f(string, "%s `jail` = '%d', ",                string, PI[playerid][pJail]);
	f(string, "%s `jailtime` = '%d', ",            string, PI[playerid][pJailTime]);
	f(string, "%s `wanted` = '%d', ",              string, PI[playerid][pWanted]);
	f(string, "%s `wantedtime` = '%d', ",          string, PI[playerid][pWantedTime]);
	f(string, "%s `wantedwho` = '%s', ",           string, PI[playerid][pWantedWho]);
	f(string, "%s `wantedreason` = '%s', ",        string, PI[playerid][pWantedReason]);
	f(string, "%s `heal` = '%f', ",                string, PI[playerid][pHeal]);
	f(string, "%s `drugs` = '%d', ",               string, PI[playerid][pDrugs]);
	f(string, "%s `patron` = '%d', ",              string, PI[playerid][pPatron]);
	f(string, "%s `gunamount` = '%d', ",           string, PI[playerid][pGunAmount]);
	f(string, "%s `crimes` = '%d', ",              string, PI[playerid][pCrimes]);
	f(string, "%s `job` = '%d', ",                 string, PI[playerid][pJob]);
	f(string, "%s `married` = '%d', ",             string, PI[playerid][pMarried]);
	f(string, "%s `whomarried` = '%s', ",          string, PI[playerid][pWhoMarried]);
	f(string, "%s `paycheck` = '%d', ",            string, PI[playerid][pPayCheck]);
	f(string, "%s `charity` = '%d', ",             string, PI[playerid][pCharity]);
	f(string, "%s `vip` = '%d', ",                 string, PI[playerid][pVip]);
	f(string, "%s `viptime` = '%d', ",             string, PI[playerid][pVipTime]);
	f(string, "%s `time` = '%d', ",                string, PI[playerid][pTime]);
	f(string, "%s `fstyle` = '%d', ",              string, PI[playerid][pFightStyle]);
	f(string, "%s `credits` = '%d', ",             string, PI[playerid][pCredits]);
	f(string, "%s `totalcredits` = '%d', ",        string, PI[playerid][pTotalCredits]);
	f(string, "%s `skin1` = '%d', ",               string, PI[playerid][pSkin][0]);
	f(string, "%s `skin2` = '%d', ",               string, PI[playerid][pSkin][1]);
	//f(string, "%s `skin3` = '%s', ",               string, PI[playerid][pName]);
	f(string, "%s `spawnchange` = '%d', ",         string, PI[playerid][pSpawnChange]);
	f(string, "%s `sdpistol` = '%d', ",            string, PI[playerid][pGunSkill][0]);
	f(string, "%s `deserteagle` = '%d', ",         string, PI[playerid][pGunSkill][1]);
	f(string, "%s `shotgun` = '%d', ",             string, PI[playerid][pGunSkill][2]);
	f(string, "%s `mp5` = '%d', ",                 string, PI[playerid][pGunSkill][3]);
	f(string, "%s `ak47` = '%d', ",                string, PI[playerid][pGunSkill][4]);
	f(string, "%s `m4` = '%d', ",                  string, PI[playerid][pGunSkill][5]);
	f(string, "%s `pistol` = '%d', ",              string, PI[playerid][pGunSkill][6]);
	f(string, "%s `microuzi` = '%d', ",            string, PI[playerid][pGunSkill][7]);
	f(string, "%s `hunger` = '%d', ",              string, PI[playerid][pHunger]);
	f(string, "%s `healths` = '%f', ",             string, PI[playerid][pHealthS]);
	f(string, "%s `sportexp` = '%d', ",            string, PI[playerid][pSportExp]);
	f(string, "%s `zakon` = '%d', ",               string, PI[playerid][pZakon]);
	f(string, "%s `death` = '%d', ",               string, PI[playerid][pDeath]);
	f(string, "%s `repcar` = '%s', ",              string, PI[playerid][pRepcars]);
	f(string, "%s `bed` = '%d', ",                 string, PI[playerid][pBed]);
	f(string, "%s `watch` = '%d', ",               string, PI[playerid][pWatch]);
	f(string, "%s `ciggare` = '%d', ",             string, PI[playerid][pCiggare]);
	f(string, "%s `sprunk` = '%d', ",              string, PI[playerid][pSprunk]);
	f(string, "%s `mask` = '%d', ",                string, PI[playerid][pMask]);
	f(string, "%s `phonebalance` = '%d', ",        string, PI[playerid][pPhoneBalance]);
	f(string, "%s `truckskill` = '%d', ",          string, PI[playerid][pTruckSkill]);
	//---Автомобили-------------------------------------------------------------
	format(zapros,sizeof(zapros),"%s/%s",cNumberVehicle[playerid][0],cNumberVehicle[playerid][1]);
	f(string, "%s `veh_number` = '%s', ",          string, zapros);

	format(zapros,sizeof(zapros),"%i/%i",cModel[playerid][0],cModel[playerid][1]);
	f(string, "%s `cModel` = '%s', ",              string, zapros);

	format(zapros,sizeof(zapros),"%i/%i",cClass[playerid][0],cClass[playerid][1]);
	f(string, "%s `cClass` = '%s', ",              string, zapros);

	format(zapros,sizeof(zapros),"%i/%i",cFuel[playerid][0],cFuel[playerid][1]);
	f(string, "%s `cFuel` = '%s', ",               string, zapros);

	format(zapros,sizeof(zapros),"%f/%f",cMilleage[playerid][0],cMilleage[playerid][1]);
	f(string, "%s `cMilleage` = '%s', ",           string, zapros);

	format(zapros,sizeof(zapros),"%i/%i",cColor0[playerid][0], cColor0[playerid][1]);
	f(string, "%s `cColor1` = '%s', ",             string, zapros);

	format(zapros,sizeof(zapros),"%i/%i",cColor1[playerid][0], cColor1[playerid][1]);
	f(string, "%s `cColor2` = '%s', ",             string, zapros);

	format(zapros,sizeof(zapros),"%i/%i",cLock[playerid][0],cLock[playerid][1]);
	f(string, "%s `cLock` = '%s', ",               string, zapros);

	format(zapros,sizeof(zapros),"%i/%i",cCost[playerid][0],cCost[playerid][1]);
	f(string, "%s `cCost` = '%s', ",               string, zapros);

	f(string, "%s `cVehcom` = '%s', ",             string, cVehcom3[playerid]);

	format(zapros,sizeof(zapros),"%i/%i",cPaintjob[playerid][0],cPaintjob[playerid][1]);
	f(string, "%s `cPaintjob` = '%s', ",           string, zapros);

	format(zapros,sizeof(zapros),"%i/%i",cVirtual[playerid][0],cVirtual[playerid][1]);
	f(string, "%s `cVirtual` = '%s', ",            string, zapros);

	format(zapros,sizeof(zapros),"%f/%f",CarParkX[playerid][0],CarParkX[playerid][1]);
	f(string, "%s `cX` = '%s', ",                  string, zapros);

	format(zapros,sizeof(zapros),"%f/%f",CarParkY[playerid][0],CarParkY[playerid][1]);
	f(string, "%s `cY` = '%s', ",                  string, zapros);

	format(zapros,sizeof(zapros),"%f/%f",CarParkZ[playerid][0],CarParkZ[playerid][1]);
	f(string, "%s `cZ` = '%s', ",                  string, zapros);

	format(zapros,sizeof(zapros),"%f/%f",CarParkA[playerid][0],CarParkA[playerid][1]);
	f(string, "%s `cA` = '%s', ",                  string, zapros);
	//--------------------------------------------------------------------------
	f(string, "%s `vehiclekey` = '%d', ",          string, PI[playerid][pVehicleKey][0]);
	f(string, "%s `vehiclekey1` = '%d', ",         string, PI[playerid][pVehicleKey][0]);
	f(string, "%s `aptechka` = '%d', ",            string, PI[playerid][pAptechka]);
	f(string, "%s `Voennik` = '%d', ",             string, PI[playerid][pVoennik]);
	f(string, "%s `music` = '%d', ",               string, PI[playerid][pMusic]);
	f(string, "%s `improves` = '%s', ",            string, PI[playerid][pImproves]);
	f(string, "%s `settings` = '%s', ",            string, PI[playerid][pSettings]);
	f(string, "%s `phnumber1` = '%i', ",           string, PhoneNumbers[playerid][0]);
	f(string, "%s `phnumber2` = '%i', ",           string, PhoneNumbers[playerid][1]);
	f(string, "%s `phnumber3` = '%i', ",           string, PhoneNumbers[playerid][2]);
	f(string, "%s `phnumber4` = '%i', ",           string, PhoneNumbers[playerid][3]);
	f(string, "%s `phnumber5` = '%i', ",           string, PhoneNumbers[playerid][4]);
	f(string, "%s `phnumber6` = '%i', ",           string, PhoneNumbers[playerid][5]);
	f(string, "%s `phnumber7` = '%i', ",           string, PhoneNumbers[playerid][6]);
	//f(string, "%s `fishki` = '%i', ",              string, PI[playerid][pFishkis]);
	f(string, "%s `thour` = '%d', ",               string, PI[playerid][pTimeHour]);
	f(string, "%s `tday` = '%d', ",                string, PI[playerid][pTimeDay]);
	f(string, "%s `tlastday` = '%d', ",            string, PI[playerid][pTimeLastDay]);
	f(string, "%s `balon1` = '%d', ",              string, PI[playerid][pBalon][0]);
	f(string, "%s `balon2` = '%d', ",              string, PI[playerid][pBalon][1]);
	f(string, "%s `balon3` = '%d', ",              string, PI[playerid][pBalon][2]);
	f(string, "%s `balon4` = '%d', ",              string, PI[playerid][pBalon][3]);
	f(string, "%s `balon5` = '%d', ",              string, PI[playerid][pBalon][4]);
	f(string, "%s `balon6` = '%d', ",              string, PI[playerid][pBalon][5]);
	f(string, "%s `balon7` = '%d', ",              string, PI[playerid][pBalon][6]);
    f(string, "%s `remont` = '%d', ",              string, PI[playerid][pRemontNabor]);
	f(string, "%s `sleep` = '%d', ",               string, PI[playerid][pSleep]);
	f(string, "%s `SGU` = '%d', ",                 string, PI[playerid][pSGU]);
	f(string, "%s `fwarn` = '%d', ",               string, PI[playerid][pfWarn]);
	f(string, "%s `toilet` = '%d', ",              string, PI[playerid][pToilet]);
    format(zapros,sizeof(zapros),"%f,%f,%f,%f,%f,%f",sguX[playerid],sguY[playerid],sguZ[playerid],sguRX[playerid],sguRY[playerid],sguRZ[playerid]);
	f(string, "%s `SGUCOORD` = '%s' ",            string, zapros);

	f(string, "%s WHERE `name` = '%s'", 		   string, PI[playerid][pName]);
	mysql_function_query(dbHandle, string, false, "", "");
	return 1;
}

 

 

Поделиться сообщением


Ссылка на сообщение

1 ответ на этот вопрос

  • 0

Mysql.log пожалуйста :3 

Поделиться сообщением


Ссылка на сообщение
Гость
Эта тема закрыта для публикации ответов.
  • Последние посетители   0 пользователей онлайн

    Ни одного зарегистрированного пользователя не просматривает данную страницу

  • Похожий контент

    • Mister Odin
      От Mister Odin
       
      new
       g_teleport_list[39][E_TELEPORT_LIST] = {  {"Спавн пгт.Батырево", 1802.3612, 2508.4824, 15.8887},  {"Спавн г.Арзамас", -113.5887, 977.7222, 12.0346},     {"Спавн г.Южный", 2744.2770, -2446.7246, 21.8988},     {"Центральный банк", 1852.020385,2040.791381,15.892713},  {"Рублёвка", -837.7783, 888.6161, 12.7232},  {"Казино", 1332.4252, 2358.7014, 17.6641},  {"Битва за контейнеры", 614.5167, 1722.3566, 12.0709},  {"Автосалон низкого класса", 2493.9616, -722.9544, 12.3315},  {"Автосалон среднего класса", 1407.7449, 455.4801, 13.1630},  {"Автосалон высокого класса", -14.0637, 2614.5664, 10.9892},   {"Мотосалон Harley Davidson", 785.720153, 750.465087, 12.000024},  {"Автошкола", 1909.174438,2227.679687,15.708162},  {"Военкомат", 1916.778564,2302.411376,15.574637},  {"Правительство области", -139.140975,593.789611,12.145712},  {"Отдел полиции №1 (ГИБДД)", 1906.805786,-2234.382812,11.257631},  {"Отдел полиции №2 (УМВД)", 2581.309326,-2416.139892,21.960090},  {"Отдел ФСБ", 1823.904663,2095.636718,15.848405},  {"Городская больница г.Арзамас", -285.797210,581.851562,12.120290},   {"СМИ", -317.708038,821.221679,13.051450},  {"Воинская часть", 1703.197265,1678.025878,15.279437},  {"Арзамасская ОПГ", 438.705322,1046.505126,12.002637},  {"Батыревская ОПГ", 1941.203857,2161.006591,15.705187},  {"Лыткаринская ОПГ", -2346.002441,75.257041,21.002962},  {"Шахта", 2381.5727, 1726.4451, -2.1506},  {"Завод", -1062.6697, 2204.1894, 38.0964},  {"Инкосация", 1864.1374, 2011.7136, 15.8546},  {"Транспортная Компания", 2362.1115, 1972.5627, 15.5530},  {"База механиков", 1840.918090,-118.025146,15.695312},  {"Курьерская служба доставки", 2764.509765,-2396.882568,21.890625},  {"Аренда автобуса(Южный)", 2771.041992,-2454.780761,21.845964},  {"Аренда автобуса(Арзамас)", -127.487670,943.652648,12.142824},   {"Аренда автобуса(Батырево)", 1798.986328,2529.591552,15.664262},  {"Гоночная трасса", -1568.7784, 1611.8305, 36.3971},  {"Дом на горе", -789.5397, -456.7479, 741.1422},  {"СТО и тюнинг-ателье", 1856.1375, -122.3266, 15.6888},  {"Аренда транспорта пгт.Батырево", 1763.641723,2255.673339,15.865348},  {"Аренда транспорта г.Арзамас", -36.923530,1360.673583,12.002090},  {"Аренда транспорта г.Южный", 1966.599975,-2603.943603,10.820312},  {"Тайный интерьер в Лыткарино", -2424.5818, 2846.3291, 40.7908} };