Pa4enka (06 августа 2022 - 22:38) писал:
Покажи больше кода в участке где сохраняешь.
вот это ???
publics: LoginCallback(playerid) { new maximum[200]; cache_get_field_content(0, "pID", maximum), PlayerInfo[playerid][pID] = strval(maximum); cache_get_field_content(0, "pLevel", maximum), PlayerInfo[playerid][pLevel] = strval(maximum); cache_get_field_content(0, "pPhousekey", maximum), PlayerInfo[playerid][pPhousekey] = strval(maximum); cache_get_field_content(0, "pAdmin", maximum), PlayerInfo[playerid][pAdmin] = strval(maximum); cache_get_field_content(0, "pFuelcar", maximum), PlayerInfo[playerid][pFuelcar] = strval(maximum); cache_get_field_content(0, "pCar", maximum), PlayerInfo[playerid][pCar] = strval(maximum); cache_get_field_content(0, "pCar2", maximum), PlayerInfo[playerid][pCar2] = strval(maximum); cache_get_field_content(0, "pDonat", maximum), PlayerInfo[playerid][pDonat] = strval(maximum); cache_get_field_content(0, "pDonateRank", maximum), PlayerInfo[playerid][pDonateRank] = strval(maximum); cache_get_field_content(0, "pDonateRankTime", maximum), PlayerInfo[playerid][pDonateRankTime] = strval(maximum); cache_get_field_content(0, "pSex", maximum), PlayerInfo[playerid][pSex] = strval(maximum); cache_get_field_content(0, "pMuted", maximum), PlayerInfo[playerid][pMuted] = strval(maximum); cache_get_field_content(0, "pExp", maximum), PlayerInfo[playerid][pExp] = strval(maximum); cache_get_field_content(0, "pCash", maximum), PlayerInfo[playerid][pCash] = strval(maximum); cache_get_field_content(0, "pKills", maximum), PlayerInfo[playerid][pKills] = strval(maximum); cache_get_field_content(0, "pKillsOnDM", maximum), PlayerInfo[playerid][pKillsOnDM] = strval(maximum); cache_get_field_content(0, "pJailed", maximum), PlayerInfo[playerid][pJailed] = strval(maximum); cache_get_field_content(0, "pJailTime", maximum), PlayerInfo[playerid][pJailTime] = strval(maximum); cache_get_field_content(0, "pDeagle_inv", maximum), PlayerInfo[playerid][pDeagle_inv] = strval(maximum); cache_get_field_content(0, "pPisdolDul_inv", maximum), PlayerInfo[playerid][pPisdolDul_inv] = strval(maximum); cache_get_field_content(0, "pPistol_inv", maximum), PlayerInfo[playerid][pPistol_inv] = strval(maximum); cache_get_field_content(0, "pUzi_inv", maximum), PlayerInfo[playerid][pUzi_inv] = strval(maximum); cache_get_field_content(0, "pTec9_inv", maximum), PlayerInfo[playerid][pTec9_inv] = strval(maximum); cache_get_field_content(0, "pShotgun_inv", maximum), PlayerInfo[playerid][pShotgun_inv] = strval(maximum); cache_get_field_content(0, "pAka47_inv", maximum), PlayerInfo[playerid][pAka47_inv] = strval(maximum); cache_get_field_content(0, "pM4_inv", maximum), PlayerInfo[playerid][pM4_inv] = strval(maximum); cache_get_field_content(0, "pRifle_inv", maximum), PlayerInfo[playerid][pRifle_inv] = strval(maximum); cache_get_field_content(0, "pMsg_inv", maximum), PlayerInfo[playerid][pMsg_inv] = strval(maximum); cache_get_field_content(0, "pArmour_inv", maximum), PlayerInfo[playerid][pArmour_inv] = strval(maximum); cache_get_field_content(0, "pPatroni_inv", maximum), PlayerInfo[playerid][pPatroni_inv] = strval(maximum); cache_get_field_content(0, "pEat_inv", maximum), PlayerInfo[playerid][pEat_inv] = strval(maximum); cache_get_field_content(0, "pHeal", maximum), PlayerInfo[playerid][pHeal] = strval(maximum); cache_get_field_content(0, "pMask", maximum), PlayerInfo[playerid][pMask] = strval(maximum); cache_get_field_content(0, "pDrugs", maximum), PlayerInfo[playerid][pDrugs] = strval(maximum); cache_get_field_content(0, "pNarcoLomka", maximum), PlayerInfo[playerid][pNarcoLomka] = strval(maximum); cache_get_field_content(0, "pFight", maximum), PlayerInfo[playerid][pFight] = strval(maximum); cache_get_field_content(0, "pCamerakey", maximum), PlayerInfo[playerid][pCamerakey] = strval(maximum); cache_get_field_content(0, "pArmkey", maximum), PlayerInfo[playerid][pArmkey] = strval(maximum); cache_get_field_content(0, "pBruletka", maximum), PlayerInfo[playerid][pBruletka] = strval(maximum); cache_get_field_content(0, "pSruletka", maximum), PlayerInfo[playerid][pSruletka] = strval(maximum); cache_get_field_content(0, "pGruletka", maximum), PlayerInfo[playerid][pGruletka] = strval(maximum); cache_get_field_content(0, "pLeader", maximum), PlayerInfo[playerid][pLeader] = strval(maximum); cache_get_field_content(0, "pMember", maximum), PlayerInfo[playerid][pMember] = strval(maximum); cache_get_field_content(0, "pRank", maximum), PlayerInfo[playerid][pRank] = strval(maximum); cache_get_field_content(0, "pVodPrava", maximum), PlayerInfo[playerid][pVodPrava] = strval(maximum); cache_get_field_content(0, "pFlyLic", maximum), PlayerInfo[playerid][pFlyLic] = strval(maximum); cache_get_field_content(0, "pBoatLic", maximum), PlayerInfo[playerid][pBoatLic] = strval(maximum); cache_get_field_content(0, "pFishLic", maximum), PlayerInfo[playerid][pFishLic] = strval(maximum); cache_get_field_content(0, "pGunLic", maximum), PlayerInfo[playerid][pGunLic] = strval(maximum); cache_get_field_content(0, "pSDPistol", maximum), PlayerInfo[playerid][pSDPistol] = strval(maximum); cache_get_field_content(0, "pDesertEagle", maximum), PlayerInfo[playerid][pDesertEagle] = strval(maximum); cache_get_field_content(0, "pShotGun", maximum), PlayerInfo[playerid][pShotGun] = strval(maximum); cache_get_field_content(0, "pMP5", maximum), PlayerInfo[playerid][pMP5] = strval(maximum); cache_get_field_content(0, "pAK47", maximum), PlayerInfo[playerid][pAK47] = strval(maximum); cache_get_field_content(0, "pM4", maximum), PlayerInfo[playerid][pM4] = strval(maximum); cache_get_field_content(0, "pChar", maximum), PlayerInfo[playerid][pChar] = strval(maximum); cache_get_field_content(0, "pModel", maximum), PlayerInfo[playerid][pModel] = strval(maximum); cache_get_field_content(0, "pPnumber", maximum), PlayerInfo[playerid][pPnumber] = strval(maximum); cache_get_field_content(0, "pPayDayHad", maximum), PlayerInfo[playerid][pPayDayHad] = strval(maximum); cache_get_field_content(0, "pWarns", maximum), PlayerInfo[playerid][pWarns] = strval(maximum); cache_get_field_content(0, "punWarns", maximum), PlayerInfo[playerid][punWarns] = strval(maximum); cache_get_field_content(0, "punWarnstime", maximum), PlayerInfo[playerid][punWarnstime] = strval(maximum); cache_get_field_content(0, "pFuel", maximum), PlayerInfo[playerid][pFuel] = strval(maximum); cache_get_field_content(0, "pRepcar", maximum), PlayerInfo[playerid][pRepcar] = strval(maximum); cache_get_field_content(0, "pJackcar", maximum), PlayerInfo[playerid][pJackcar] = strval(maximum); cache_get_field_content(0, "pRobTime", maximum), PlayerInfo[playerid][pRobTime] = strval(maximum); cache_get_field_content(0, "pReportTime", maximum), PlayerInfo[playerid][pReportTime] = strval(maximum); cache_get_field_content(0, "pVerevka", maximum), PlayerInfo[playerid][pVerevka] = strval(maximum); cache_get_field_content(0, "pOtmbI4ka", maximum), PlayerInfo[playerid][pOtmbI4ka] = strval(maximum); cache_get_field_content(0, "pMarried", maximum), PlayerInfo[playerid][pMarried] = strval(maximum); cache_get_field_content(0, "pMuteTime", maximum), PlayerInfo[playerid][pMuteTime] = strval(maximum); cache_get_field_content(0, "pBank", maximum), PlayerInfo[playerid][pBank] = strval(maximum); cache_get_field_content(0, "pDostup", maximum), PlayerInfo[playerid][pDostup] = strval(maximum); cache_get_field_content(0, "pZakonp", maximum), PlayerInfo[playerid][pZakonp] = strval(maximum); cache_get_field_content(0, "pArrested", maximum), PlayerInfo[playerid][pArrested] = strval(maximum); cache_get_field_content(0, "pVipTime", maximum), PlayerInfo[playerid][pVipTime] = strval(maximum); cache_get_field_content(0, "pVipData", maximum), PlayerInfo[playerid][pVipData] = strval(maximum); cache_get_field_content(0, "pProz", maximum), PlayerInfo[playerid][pProz] = strval(maximum); cache_get_field_content(0, "pMestoJail", maximum), PlayerInfo[playerid][pMestoJail] = strval(maximum); cache_get_field_content(0, "pWanted", maximum), PlayerInfo[playerid][pWanted] = strval(maximum); cache_get_field_content(0, "pHousecash", maximum), PlayerInfo[playerid][pHousecash] = strval(maximum); cache_get_field_content(0, "pNumbercar", maximum), strmid(PlayerInfo[playerid][pNumbercar], maximum, 0, strlen(maximum), 64); cache_get_field_content(0, "pIpReg", maximum), strmid(PlayerInfo[playerid][pIpReg], maximum, 0, strlen(maximum), 64); cache_get_field_content(0, "pDataReg", maximum), strmid(PlayerInfo[playerid][pDataReg], maximum, 0, strlen(maximum), 64); cache_get_field_content(0, "Weapons", PlayerInfo[playerid][pWeapons],connects,64), sscanf(PlayerInfo[playerid][pWeapons], "p<,>a<i>[13]",PlayerInfo[playerid][Weapon]); cache_get_field_content(0, "Ammos", PlayerInfo[playerid][Ammos],connects,64), sscanf(PlayerInfo[playerid][Ammos], "p<,>a<i>[13]",PlayerInfo[playerid][Ammo]); cache_get_field_content(0, "day_online", maximum), PlayerInfo[playerid][pDayOnline] = strval(maximum); cache_get_field_content(0, "pDayAfk", maximum), PlayerInfo[playerid][pDayAfk] = strval(maximum); cache_get_field_content(0, "pOnlineYes", maximum), PlayerInfo[playerid][pOnlineYes] = strval(maximum); cache_get_field_content(0, "pAfkYes", maximum), PlayerInfo[playerid][pAfkYes] = strval(maximum); cache_get_field_content(0, "Texts", PlayerInfo[playerid][pTexts],connects,16), sscanf(PlayerInfo[playerid][pTexts], "p<,>a<i>[3]",PlayerInfo[playerid][Texts]); cache_get_field_content(0, "SkinHome1", maximum), PlayerInfo[playerid][pSkinhome][0] = strval(maximum); cache_get_field_content(0, "SkinHome2", maximum), PlayerInfo[playerid][pSkinhome][1] = strval(maximum); cache_get_field_content(0, "SkinHome3", maximum), PlayerInfo[playerid][pSkinhome][2] = strval(maximum); cache_get_field_content(0, "pHomez", maximum), PlayerInfo[playerid][pHomez] = strval(maximum); cache_get_field_content(0, "satiety", maximum), PlayerInfo[playerid][pSatiety] = strval(maximum); cache_get_field_content(0, "keyip", PlayerInfo[playerid][pKeyIp],connects,16); cache_get_field_content(0, "family", maximum), PlayerInfo[playerid][pFamily] = strval(maximum); cache_get_field_content(0, "pAccent", PlayerInfo[playerid][pAccent],connects,32); cache_get_field_content(0, "pDatum", maximum), PlayerInfo[playerid][pDatum] = strval(maximum); cache_get_field_content(0, "pProgressEda", maximum), PlayerInfo[playerid][pProgressEda] = strval(maximum); cache_get_field_content(0, "pGetonIP", PlayerInfo[playerid][pGetonIP],connects,16); cache_get_field_content(0, "pGetonDate", PlayerInfo[playerid][pGetondate],connects,16); cache_get_field_content(0, "pPame", PlayerInfo[playerid][pPame],connects,128); cache_get_field_content(0, "settings", maximum), sscanf(maximum, "p<,>a<i>[5]",PlayerInfo[playerid][Settings]); cache_get_field_content(0,"one_tuneveh", maximum, connects, 74), sscanf(maximum, "p<,>a<i>[16]",cTune[playerid][0]); cache_get_field_content(0,"two_tuneveh", maximum, connects, 74), sscanf(maximum, "p<,>a<i>[16]",cTune[playerid][1]); cache_get_field_content(0,"one_vehcolor", maximum, connects, 11), sscanf(maximum, "p<,>a<i>[2]",cColor[playerid][0]); cache_get_field_content(0,"two_vehcolor", maximum, connects, 11), sscanf(maximum, "p<,>a<i>[2]",cColor[playerid][1]); cache_get_field_content(0,"acessories", PlayerInfo[playerid][pSlotItems], connects, 64), sscanf(PlayerInfo[playerid][pSlotItems], "p<,>a<i>[6]",PlayerInfo[playerid][pSlotItem]); cache_get_field_content(0, "vigs", maximum), PlayerInfo[playerid][pVigs] = strval(maximum); PlayerInfo[playerid][pCheckIp] = cache_get_field_content_int(0,"checkip"); PlayerInfo[playerid][pAge] = cache_get_field_content_int(0,"age"); PlayerInfo[playerid][pNational] = cache_get_field_content_int(0,"national"); PlayerInfo[playerid][pKInCapt] = cache_get_field_content_int(0,"pKInCapt"); PlayerInfo[playerid][pDeadCapt] = cache_get_field_content_int(0,"pDeadCapt"); PlayerInfo[playerid][pKInBizwar] = cache_get_field_content_int(0,"pKInBizwar"); PlayerInfo[playerid][pDeadBizwar] = cache_get_field_content_int(0,"pDeadBizwar"); if(PlayerInfo[playerid][pCash] <= 0) PlayerInfo[playerid][pCash] = 0; if(PlayerInfo[playerid][pProz] <= 0) PlayerInfo[playerid][pProz] = 0; if(PlayerInfo[playerid][pPhousekey] != 255) { if(strcmp(PlayerInfo[playerid][pNames], HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0) { } else PlayerInfo[playerid][pPhousekey] = 255; } format(mysql_query_, sizeof(mysql_query_), "SELECT * FROM `"TABLE_BANLOG"` WHERE `name` = '%s'", PlayerInfo[playerid][pNames]); mysql_function_query(connects, mysql_query_, true, "Checkban", "ds", playerid, PlayerInfo[playerid][pNames]); return 1; }

или это ??
case 7000: { if(!response) return 1; new count_symbol = strlen(inputtext); const max_symbol_for_pame = 128; if(!(10 <= count_symbol <= max_symbol_for_pame)) return SendClientMessage(playerid, COLOR_GREY, !"Ошибка: Используйте не меньше 10 и не больше 128 символов."); const line_break_start = 64; new pame[max_symbol_for_pame]; strcat(pame, inputtext); if(count_symbol > line_break_start) { new str_line_break[max_symbol_for_pame / 2]; strmid(str_line_break, pame, line_break_start, max_symbol_for_pame); strdel(pame, line_break_start, max_symbol_for_pame); strcat(pame, "\n"); strcat(pame, str_line_break); } if(pame_text[playerid] != Text3D: -1) return SendClientMessage(playerid, COLOR_GREY, !"Ошибка: У Вас уже имеется описание персонажа, используйте: /dellpame"); pame_text[playerid] = CreateDynamic3DTextLabel(pame, 0x645d5dAA, 0.0, 0.0, -1.0, 5, playerid, -1, 0); /*new string[MAX_CHATBUBBLE_LENGTH + 1] = "Описание: "; strcat(string, pame); SendClientMessage(playerid, 0x645d5dAA, string);*/ new string[256]; format(string, sizeof(string),"{FFFFFF}Вы создали описание для вашего персонажа.\n\n{808080}%s",pame); ShowPlayerDialog(playerid, 0, DSM, "{FFCC00}Описание персонажа", string, "Закрыть", ""); format(stringer, sizeof(stringer),"[A] %s[%d] Создал описание персонажа.",PlayerInfo[playerid][pNames],playerid); SendAdminMessage(0xff6600AA, stringer); new stringg[144]; format(stringg, sizeof(stringg), "UPDATE `accounts` SET `pPame` = '%s' WHERE `pID` = '%d'", PlayerInfo[playerid][pPame], PlayerInfo[playerid][pID]); mysql_function_query(connects, stringg, false, "", ""); return true; }
