05:49
ОбновитьСмайлыУправление мини-чатом
МИНИ-ЧАТ
Главная страница!

 



 
          





Рекомендуем:





Последние Файлы GTA 4 Последние Файлы GTA-MP Реклама
Скрипт GTA 4 элементы Watch... 07.09.2014
Ferrari 360 Spider [EPM con... 13.12.2013
Porsche Cayenne Turbo 2012 ... 13.12.2013
Shelby Terlingua Mustang v1... 13.12.2013
Hamann Lamborghini Gallardo... 27.10.2013
[GM] The Big PEN1:LS v2.00 ... 04.12.2017
Dgun (AvnanceRP,SampRP,Dimo... 19.03.2016
SAMP скрипт SX Events (MySQ... 03.03.2016
Карта ASL мэрия для SAMP се... 03.03.2016
AIM для SA-MP 0.3.7 22.02.2016
  • Страница 1 из 2
  • 1
  • 2
  • »
Модератор форума: Alcoholik  
Проблемма с регистрацией
LatronДата: Вторник, 15.03.2011, 23:16 | Сообщение # 1
Группа: I'm V.I.P.
Сообщений: 2115
Награды: 22
Город: Орел
Репутация: 1604
Замечания: 0%
Статус:
У меня такая проблемма....когда ник короткий(Lev_Levs акаунт сохранняеться нормально..
а когда длинее не сохраняеться(stefano_Granado)
в чем может быть проблемма поскажите пожалуста...

вот public saveplayer

Code
public SavePlayer(playerid)
{
   if(IsPlayerConnected(playerid))
   {
    if(gPlayerLogged[playerid])
    {
     ResetWeapons(playerid);
     SavePlayerWeapons(playerid);
     new string3[32];
     new playername3[MAX_PLAYER_NAME];
     GetPlayerName(playerid, playername3, sizeof(playername3));
     format(string3, sizeof(string3), "Players/%s.ini", playername3);
     new File: hFile = fopen(string3, io_write);
     if (hFile)
     {
      new var[32];
      format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
      PlayerInfo[playerid][pCash] = UAS_GetValPlayerMoney(playerid);
      format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
      format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
      format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
      format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
      format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
      format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
      format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
      format(var, 32, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
      format(var, 32, "Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var);
      format(var, 32, "CK=%d\n",PlayerInfo[playerid][pCK]);fwrite(hFile, var);
      format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
      format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
      format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
      format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var);
      format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
      format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
      format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
      format(var, 32, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
      format(var, 32, "WantedDeaths=%d\n",PlayerInfo[playerid][pWantedDeaths]);fwrite(hFile, var);
      format(var, 32, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
      format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
      format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
      format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
      format(var, 32, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
      format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
      format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
      format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
      format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
      format(var, 32, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
      format(var, 32, "Drugs=%d\n",PlayerInfo[playerid][pDrugs]);fwrite(hFile, var);
      format(var, 32, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var);
      format(var, 32, "Member=%d\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var);
      format(var, 32, "FMember=%d\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var);
      format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
      format(var, 32, "Char=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var);
      format(var, 32, "ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var);
      format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
      format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
      format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
      format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
      format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
      format(var, 32, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
      format(var, 32, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
      format(var, 32, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
      format(var, 32, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
      format(var, 32, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var);
      format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
      format(var, 32, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
               GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
      format(var, 32, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
      format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
      format(var, 32, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
      format(var, 32, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
      format(var, 32, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
      format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
      format(var, 32, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
      format(var, 32, "PhoneAkk=%d\n",PlayerInfo[playerid][pPhoneAkk]);fwrite(hFile, var);
      if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0))
      {
       PlayerInfo[playerid][pPos_x] = 1684.9;
       PlayerInfo[playerid][pPos_y] = -2244.5;
       PlayerInfo[playerid][pPos_z] = 13.5;
      }
      if(Spectate[playerid] != 255)
      {
       PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx];
       PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy];
       PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz];
       PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
       PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
      }
      format(var, 32, "Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var);
      format(var, 32, "Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var);
      format(var, 32, "Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var);
      format(var, 32, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
                  format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
      format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
      format(var, 32, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
      format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
      format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
      format(var, 32, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var);
      format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
      format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var);
      format(var, 32, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
      format(var, 32, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
      format(var, 32, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var);
      format(var, 32, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var);
      format(var, 32, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var);
      format(var, 32, "PainPerk=%d\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var);
      format(var, 32, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var);
      format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
      format(var, 32, "Mission=%d\n",PlayerInfo[playerid][pMissionNr]);fwrite(hFile, var);
      format(var, 32, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
      format(var, 32, "Adjustable=%d\n",PlayerInfo[playerid][pAdjustable]);fwrite(hFile, var);
      if(PlayerInfo[playerid][pDonateRank] < 1) { PlayerInfo[playerid][pFuel] = 0; }
      format(var, 32, "Fuel=%d\n",PlayerInfo[playerid][pFuel]);fwrite(hFile, var);
      format(var, 32, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
      format(var, 32, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
      format(var, 32, "Prishel=%d\n",PlayerInfo[playerid][pPrishel]);fwrite(hFile, var);
      format(var, 32, "Buttle=%d\n",PlayerInfo[playerid][pButtle]);fwrite(hFile, var);
      format(var, 32, "Iron=%d\n",PlayerInfo[playerid][pIron]);fwrite(hFile, var);
      format(var, 32, "Lang=%d\n",PlayerInfo[playerid][pLang]);fwrite(hFile, var);
      format(var, 32, "Italian=%d\n",PlayerInfo[playerid][pItalian]);fwrite(hFile, var);
      format(var, 32, "Japanese=%d\n",PlayerInfo[playerid][pJapanese]);fwrite(hFile, var);
      format(var, 32, "Espanol=%d\n",PlayerInfo[playerid][pEspanol]);fwrite(hFile, var);
      format(var, 32, "France=%d\n",PlayerInfo[playerid][pFrance]);fwrite(hFile, var);
      format(var, 32, "Mask=%d\n",PlayerInfo[playerid][pMask]);fwrite(hFile, var);
      format(var, 32, "Pasport=%d\n",PlayerInfo[playerid][pPasport]);fwrite(hFile, var);
      format(var, 32, "LivingAt=%s\n",PlayerInfo[playerid][pLivingAt]);fwrite(hFile, var);
      format(var, 32, "FirstName=%s\n",PlayerInfo[playerid][pFirstName]);fwrite(hFile, var);
      format(var, 32, "LastName=%s\n",PlayerInfo[playerid][pLastName]);fwrite(hFile, var);
      format(var, 32, "BornAt=%s\n",PlayerInfo[playerid][pBornAt]);fwrite(hFile, var);
     



Моё портфолио

Мои работы:
[ Lesson ] Операторы в PAWN.
[ Lesson ] Переменная.
[ GM ] RegSys. ( Last update: 21.04.2012 )


LatronДата: Вторник, 15.03.2011, 23:17 | Сообщение # 2
Группа: I'm V.I.P.
Сообщений: 2115
Награды: 22
Город: Орел
Репутация: 1604
Замечания: 0%
Статус:
Code
format(var, 32, "MutedTime=%d\n",PlayerInfo[playerid][pMutedTime]);fwrite(hFile, var);
      format(var, 32, "MotoLic=%d\n",PlayerInfo[playerid][pMotoLic]);fwrite(hFile, var);
      format(var, 32, "Radio=%d\n",PlayerInfo[playerid][pRadio]);fwrite(hFile, var);
      format(var, 32, "Zhertva=%d\n",PlayerInfo[playerid][pZhertva]);fwrite(hFile, var);
      format(var, 32, "HotelKey=%d\n",PlayerInfo[playerid][pHotelKey]);fwrite(hFile, var);
      format(var, 32, "Sigi=%d\n",PlayerInfo[playerid][pSigi]);fwrite(hFile, var);
      format(var, 32, "Spichki=%d\n",PlayerInfo[playerid][pSpichki]);fwrite(hFile, var);
      format(var, 64, "SQ=%d\n",PlayerInfo[playerid][pSQ]);fwrite(hFile, var);
      format(var, 32, "Rope=%d\n",PlayerInfo[playerid][pRope]);fwrite(hFile, var);
      format(var, 32, "Semena=%d\n",PlayerInfo[playerid][pSemena]);fwrite(hFile, var);
      format(var, 32, "SemenaTyp=%d\n",PlayerInfo[playerid][pSemenaTyp]);fwrite(hFile, var);
      format(var, 32, "Pole=%d\n",PlayerInfo[playerid][pPole]);fwrite(hFile, var);
      format(var, 32, "Urojay=%d\n",PlayerInfo[playerid][pUrojay]);fwrite(hFile, var);
      format(var, 32, "UrojayTyp=%d\n",PlayerInfo[playerid][pUrojayTyp]);fwrite(hFile, var);
      format(var, 32, "Pivo=%d\n",PlayerInfo[playerid][pPivo]);fwrite(hFile, var);
      format(var, 32, "PhoneAkk=%d\n",PlayerInfo[playerid][pPhoneAkk]);fwrite(hFile, var);
      format(var, 32, "Car=%d\n",PlayerInfo[playerid][pPcarkey]);fwrite(hFile, var);
      format(var, 32, "Bike=%d\n",PlayerInfo[playerid][pPvelikkey]);fwrite(hFile, var);
      format(var, 32, "Dice=%d\n",PlayerInfo[playerid][pDice]);fwrite(hFile, var);
      format(var, 32, "Sigarets=%d\n",PlayerInfo[playerid][pSigareti]);fwrite(hFile, var);
      format(var, 32, "SD=%d\n",PlayerInfo[playerid][pSD]);fwrite(hFile, var);
      format(var, 32, "Spawn=%d\n",PlayerInfo[playerid][pSpawn]);fwrite(hFile, var);
      format(var, 32, "Box=%d\n",PlayerInfo[playerid][pBoxing]);fwrite(hFile, var);
      format(var, 32, "Kneehead=%d\n",PlayerInfo[playerid][pKneehead]);fwrite(hFile, var);
      format(var, 32, "Kunfu=%d\n",PlayerInfo[playerid][pKunfu]);fwrite(hFile, var);
      format(var, 32, "Rent=%d\n",PlayerInfo[playerid][pRent]);fwrite(hFile, var);
      format(var, 32, "House1=%d\n",PlayerInfo[playerid][pHouse1]);fwrite(hFile, var);
      format(var, 32, "House2=%d\n",PlayerInfo[playerid][pHouse2]);fwrite(hFile, var);
      format(var, 32, "TutEnd=%d\n",PlayerInfo[playerid][pTutEnd]);fwrite(hFile, var);
      format(var, 32, "RPtest=%d\n",PlayerInfo[playerid][pRPtest]);fwrite(hFile, var);
      format(var, 32, "SweepTime=%d\n",PlayerInfo[playerid][pSweepTime]);fwrite(hFile, var);
      format(var, 64, "Melee=%d\n",PlayerInfo[playerid][pMelee]);fwrite(hFile, var);
      format(var, 64, "MeleeAmmo=%d\n",PlayerInfo[playerid][pMeleeAmmo]);fwrite(hFile, var);
      format(var, 64, "Pistol=%d\n",PlayerInfo[playerid][pPistol]);fwrite(hFile, var);
      format(var, 64, "PistolAmmo=%d\n",PlayerInfo[playerid][pPistolAmmo]);fwrite(hFile, var);
      format(var, 64, "Shotgun=%d\n",PlayerInfo[playerid][pShotgun]);fwrite(hFile, var);
      format(var, 64, "ShotgunAmmo=%d\n",PlayerInfo[playerid][pShotgunAmmo]);fwrite(hFile, var);
      format(var, 64, "SMG=%d\n",PlayerInfo[playerid][pSMG]);fwrite(hFile, var);
      format(var, 64, "SMGAmmo=%d\n",PlayerInfo[playerid][pSMGAmmo]);fwrite(hFile, var);
      format(var, 64, "Rifle=%d\n",PlayerInfo[playerid][pRifle]);fwrite(hFile, var);
      format(var, 64, "RifleAmmo=%d\n",PlayerInfo[playerid][pRifleAmmo]);fwrite(hFile, var);
      format(var, 64, "Assault=%d\n",PlayerInfo[playerid][pAssault]);fwrite(hFile, var);
      format(var, 64, "AssaultAmmo=%d\n",PlayerInfo[playerid][pAssaultAmmo]);fwrite(hFile, var);
      format(var, 64, "Grenade=%d\n",PlayerInfo[playerid][pGrenade]);fwrite(hFile, var);
      format(var, 64, "GrenadeAmmo=%d\n",PlayerInfo[playerid][pGrenadeAmmo]);fwrite(hFile, var);
      format(var, 64, "Special=%d\n",PlayerInfo[playerid][pSpecial]);fwrite(hFile, var);
      format(var, 64, "SpecialAmmo=%d\n",PlayerInfo[playerid][pSpecialAmmo]);fwrite(hFile, var);
      format(var, 64, "Other=%d\n",PlayerInfo[playerid][pOther]);fwrite(hFile, var);
      format(var, 64, "OtherAmmo=%d\n",PlayerInfo[playerid][pOtherAmmo]);fwrite(hFile, var);
      format(var, 64, "FamilyAccept=%d\n",PlayerInfo[playerid][pFamilyAccept]);fwrite(hFile, var);
      format(var, 64, "OnDuty=%d\n",PlayerInfo[playerid][pOnDuty]);fwrite(hFile, var);
      format(var, 64, "Wanted=%d\n",PlayerInfo[playerid][pWanted]);fwrite(hFile, var);
      format(var, 64, "Boat=%d\n",PlayerInfo[playerid][pPboatkey]);fwrite(hFile, var);
      fclose(hFile);
     }
      if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            for(new i = 0; i < sizeof(SpikeInfo); i++)
           {
               if(IsPlayerInRangeOfPoint(playerid, 3.0, SpikeInfo[i][sX], SpikeInfo[i][sY], SpikeInfo[i][sZ]))
                {
                   if(SpikeInfo[i][sCreated] == 1)
                   {
                       new panels, doors, lights, tires;
                       new carid = GetPlayerVehicleID(playerid);
                  GetVehicleDamageStatus(carid, panels, doors, lights, tires);
                  tires = encode_tires(1, 1, 1, 1);
                  UpdateVehicleDamageStatus(carid, panels, doors, lights, tires);
                       return 0;
                   }
               }
           }
       }
    }
   }
   return 1;
}
[/code]



Моё портфолио

Мои работы:
[ Lesson ] Операторы в PAWN.
[ Lesson ] Переменная.
[ GM ] RegSys. ( Last update: 21.04.2012 )


Riko_753Дата: Среда, 16.03.2011, 12:29 | Сообщение # 3
Новенький
Группа: Пользователи
Сообщений: 6
Награды: 0
Город: Ярославль
Репутация: 0
Замечания: 0%
Статус:
у меня такая же проблема =( crazy crazy crazy
AwmДата: Среда, 16.03.2011, 13:26 | Сообщение # 4
Группа: I'm V.I.P.
Сообщений: 3235
Награды: 55
Город: Tallinn
Репутация: 1661
Замечания: 0%
Статус:
Quote (Latron)
new string3[32];

расширь этот массив




"Life is hard... life is harder if you're stupid." - John Wayne
LatronДата: Среда, 16.03.2011, 13:37 | Сообщение # 5
Группа: I'm V.I.P.
Сообщений: 2115
Награды: 22
Город: Орел
Репутация: 1604
Замечания: 0%
Статус:
Расширил,тоже самое


Моё портфолио

Мои работы:
[ Lesson ] Операторы в PAWN.
[ Lesson ] Переменная.
[ GM ] RegSys. ( Last update: 21.04.2012 )


LatronДата: Среда, 16.03.2011, 13:48 | Сообщение # 6
Группа: I'm V.I.P.
Сообщений: 2115
Награды: 22
Город: Орел
Репутация: 1604
Замечания: 0%
Статус:
может тут чё не так

Code

public OnPlayerRegister(playerid, password[])
{
  if(IsPlayerConnected(playerid))
  {
    new string3[MAX_PLAYER_NAME];
    new playername3[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername3, sizeof(playername3));
       new namestring = strfind(playername3, "_", true);
     if(namestring == -1)
    {
     SendClientMessage(playerid, COLOR_LIGHTRED, "*Сервер: Ваше имя не является приемлимым.");
     SendClientMessage(playerid, COLOR_LIGHTRED, "*Cервер: Ваше имя должно быть в формате Имя_фамилия.");
     SendClientMessage(playerid, COLOR_LIGHTRED, "*Cервер: Вы были кикнуты с сервера.");
     Kick(playerid);
     return 1;
    }
    if (!CheckName(playername3))
    {
     SendClientMessage(playerid, COLOR_LIGHTRED, "*Сервер: Ваше имя не является приемлимым.");
     SendClientMessage(playerid, COLOR_LIGHTRED, "*Cервер: Ваше имя должно быть в формате Имя_фамилия.");
     SendClientMessage(playerid, COLOR_LIGHTRED, "*Cервер: Вы были кикнуты с сервера.");
     Kick(playerid);
     return 1;
    }
    format(string3, sizeof(string3), "Players/%s.ini", playername3);
    new File: hFile = fopen(string3, io_write);
    if (hFile)
    {
        strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
        new var[32];
     format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
     PlayerInfo[playerid][pCash] = UAS_GetValPlayerMoney(playerid);
     format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
     format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
     format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
     format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
     format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
     format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
     format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
     format(var, 32, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
     format(var, 32, "Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var);
     format(var, 32, "CK=%d\n",PlayerInfo[playerid][pCK]);fwrite(hFile, var);
     format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
     format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
     format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
     format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var);
     format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
     format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
     format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
     format(var, 32, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
     format(var, 32, "WantedDeaths=%d\n",PlayerInfo[playerid][pWantedDeaths]);fwrite(hFile, var);
     format(var, 32, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
     format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
     format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
     format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
     format(var, 32, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
     format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
     format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
     format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
     format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
     format(var, 32, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
     format(var, 32, "Drugs=%d\n",PlayerInfo[playerid][pDrugs]);fwrite(hFile, var);
     format(var, 32, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var);
     format(var, 32, "Member=%d\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var);
     format(var, 32, "FMember=%d\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var);
     format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
     format(var, 32, "Char=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var);
     format(var, 32, "ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var);
     format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
     format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
     format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
     format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
     format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
     format(var, 32, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
     format(var, 32, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
     format(var, 32, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
     format(var, 32, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
     format(var, 32, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var);
     format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
     format(var, 32, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
              GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
     format(var, 32, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
     format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
     format(var, 32, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
     format(var, 32, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
     format(var, 32, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
     format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
     format(var, 32, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
     format(var, 32, "PhoneAkk=%d\n",PlayerInfo[playerid][pPhoneAkk]);fwrite(hFile, var);
     if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0))
     {
      PlayerInfo[playerid][pPos_x] = 1684.9;
      PlayerInfo[playerid][pPos_y] = -2244.5;
      PlayerInfo[playerid][pPos_z] = 13.5;
     }
     if(Spectate[playerid] != 255)
     {



Моё портфолио

Мои работы:
[ Lesson ] Операторы в PAWN.
[ Lesson ] Переменная.
[ GM ] RegSys. ( Last update: 21.04.2012 )


LatronДата: Среда, 16.03.2011, 13:48 | Сообщение # 7
Группа: I'm V.I.P.
Сообщений: 2115
Награды: 22
Город: Орел
Репутация: 1604
Замечания: 0%
Статус:
Code
     PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx];
      PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy];
      PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz];
      PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
      PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
     }
     format(var, 32, "Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var);
     format(var, 32, "Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var);
     format(var, 32, "Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var);
     format(var, 32, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
                 format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
     format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
     format(var, 32, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
     format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
     format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
     format(var, 32, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var);
     format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
     format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var);
     format(var, 32, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
     format(var, 32, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
     format(var, 32, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var);
     format(var, 32, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var);
     format(var, 32, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var);
     format(var, 32, "PainPerk=%d\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var);
     format(var, 32, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var);
     format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
     format(var, 32, "Mission=%d\n",PlayerInfo[playerid][pMissionNr]);fwrite(hFile, var);
     format(var, 32, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
     format(var, 32, "Adjustable=%d\n",PlayerInfo[playerid][pAdjustable]);fwrite(hFile, var);
     format(var, 32, "Fuel=%d\n",PlayerInfo[playerid][pFuel]);fwrite(hFile, var);
     format(var, 32, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
     format(var, 32, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
     format(var, 32, "Prishel=%d\n",PlayerInfo[playerid][pPrishel]);fwrite(hFile, var);
     format(var, 32, "Buttle=%d\n",PlayerInfo[playerid][pButtle]);fwrite(hFile, var);
     format(var, 32, "Iron=%d\n",PlayerInfo[playerid][pIron]);fwrite(hFile, var);
     format(var, 32, "Lang=%d\n",PlayerInfo[playerid][pLang]);fwrite(hFile, var);
     format(var, 32, "Italian=%d\n",PlayerInfo[playerid][pItalian]);fwrite(hFile, var);
     format(var, 32, "Japanese=%d\n",PlayerInfo[playerid][pJapanese]);fwrite(hFile, var);
     format(var, 32, "Espanol=%d\n",PlayerInfo[playerid][pEspanol]);fwrite(hFile, var);
     format(var, 32, "France=%d\n",PlayerInfo[playerid][pFrance]);fwrite(hFile, var);
     format(var, 32, "Mask=%d\n",PlayerInfo[playerid][pMask]);fwrite(hFile, var);
     format(var, 32, "MaskUse=%d\n",PlayerInfo[playerid][pMaskuse]);fwrite(hFile, var);
     format(var, 32, "MutedTime=%d\n",PlayerInfo[playerid][pMutedTime]);fwrite(hFile, var);
     format(var, 32, "Radio=%d\n",PlayerInfo[playerid][pRadio]);fwrite(hFile, var);
     format(var, 32, "Zhertva=%d\n",PlayerInfo[playerid][pZhertva]);fwrite(hFile, var);
     format(var, 32, "HotelKey=%d\n",PlayerInfo[playerid][pHotelKey]);fwrite(hFile, var);
     format(var, 32, "Sigi=%d\n",PlayerInfo[playerid][pSigi]);fwrite(hFile, var);
     format(var, 32, "Spichki=%d\n",PlayerInfo[playerid][pSpichki]);fwrite(hFile, var);
     format(var, 64, "SQ=%d\n",PlayerInfo[playerid][pSQ]);fwrite(hFile, var);
     format(var, 32, "Rope=%d\n",PlayerInfo[playerid][pRope]);fwrite(hFile, var);
     format(var, 32, "Semena=%d\n",PlayerInfo[playerid][pSemena]);fwrite(hFile, var);
     format(var, 32, "SemenaTyp=%d\n",PlayerInfo[playerid][pSemenaTyp]);fwrite(hFile, var);
     format(var, 32, "Pole=%d\n",PlayerInfo[playerid][pPole]);fwrite(hFile, var);
     format(var, 32, "Urojay=%d\n",PlayerInfo[playerid][pUrojay]);fwrite(hFile, var);
     format(var, 32, "UrojayTyp=%d\n",PlayerInfo[playerid][pUrojayTyp]);fwrite(hFile, var);
     format(var, 32, "Pivo=%d\n",PlayerInfo[playerid][pPivo]);fwrite(hFile, var);
     format(var, 32, "PhoneAkk=%d\n",PlayerInfo[playerid][pPhoneAkk]);fwrite(hFile, var);
     format(var, 32, "Car=%d\n",PlayerInfo[playerid][pPcarkey]);fwrite(hFile, var);
     format(var, 32, "Bike=%d\n",PlayerInfo[playerid][pPvelikkey]);fwrite(hFile, var);
     format(var, 32, "Dice=%d\n",PlayerInfo[playerid][pDice]);fwrite(hFile, var);
     format(var, 32, "Sigarets=%d\n",PlayerInfo[playerid][pSigareti]);fwrite(hFile, var);
     format(var, 32, "SD=%d\n",PlayerInfo[playerid][pSD]);fwrite(hFile, var);
     format(var, 32, "Spawn=%d\n",PlayerInfo[playerid][pSpawn]);fwrite(hFile, var);
     format(var, 32, "Box=%d\n",PlayerInfo[playerid][pBoxing]);fwrite(hFile, var);
     format(var, 32, "Kneehead=%d\n",PlayerInfo[playerid][pKneehead]);fwrite(hFile, var);
     format(var, 32, "Kunfu=%d\n",PlayerInfo[playerid][pKunfu]);fwrite(hFile, var);
     format(var, 32, "Rent=%d\n",PlayerInfo[playerid][pRent]);fwrite(hFile, var);
     format(var, 32, "House1=%d\n",PlayerInfo[playerid][pHouse1]);fwrite(hFile, var);
     format(var, 32, "House2=%d\n",PlayerInfo[playerid][pHouse2]);fwrite(hFile, var);
     format(var, 32, "TutEnd=%d\n",PlayerInfo[playerid][pTutEnd]);fwrite(hFile, var);
     format(var, 32, "RPtest=%d\n",PlayerInfo[playerid][pRPtest]);fwrite(hFile, var);
     format(var, 32, "TrashTime=%d\n",PlayerInfo[playerid][pTrashTime]);fwrite(hFile, var);
     format(var, 32, "SweepTime=%d\n",PlayerInfo[playerid][pSweepTime]);fwrite(hFile, var);
     format(var, 64, "Melee=%d\n",PlayerInfo[playerid][pMelee]);fwrite(hFile, var);
     format(var, 64, "MeleeAmmo=%d\n",PlayerInfo[playerid][pMeleeAmmo]);fwrite(hFile, var);
     format(var, 64, "Pistol=%d\n",PlayerInfo[playerid][pPistol]);fwrite(hFile, var);
     format(var, 64, "PistolAmmo=%d\n",PlayerInfo[playerid][pPistolAmmo]);fwrite(hFile, var);
     format(var, 64, "Shotgun=%d\n",PlayerInfo[playerid][pShotgun]);fwrite(hFile, var);
     format(var, 64, "ShotgunAmmo=%d\n",PlayerInfo[playerid][pShotgunAmmo]);fwrite(hFile, var);
     format(var, 64, "SMG=%d\n",PlayerInfo[playerid][pSMG]);fwrite(hFile, var);
     format(var, 64, "SMGAmmo=%d\n",PlayerInfo[playerid][pSMGAmmo]);fwrite(hFile, var);
     format(var, 64, "Rifle=%d\n",PlayerInfo[playerid][pRifle]);fwrite(hFile, var);
     format(var, 64, "RifleAmmo=%d\n",PlayerInfo[playerid][pRifleAmmo]);fwrite(hFile, var);
     format(var, 64, "Assault=%d\n",PlayerInfo[playerid][pAssault]);fwrite(hFile, var);
     format(var, 64, "AssaultAmmo=%d\n",PlayerInfo[playerid][pAssaultAmmo]);fwrite(hFile, var);
     format(var, 64, "Grenade=%d\n",PlayerInfo[playerid][pGrenade]);fwrite(hFile, var);
     format(var, 64, "GrenadeAmmo=%d\n",PlayerInfo[playerid][pGrenadeAmmo]);fwrite(hFile, var);
     format(var, 64, "Special=%d\n",PlayerInfo[playerid][pSpecial]);fwrite(hFile, var);
     format(var, 64, "SpecialAmmo=%d\n",PlayerInfo[playerid][pSpecialAmmo]);fwrite(hFile, var);
     format(var, 64, "Other=%d\n",PlayerInfo[playerid][pOther]);fwrite(hFile, var);
     format(var, 64, "OtherAmmo=%d\n",PlayerInfo[playerid][pOtherAmmo]);fwrite(hFile, var);
     format(var, 64, "FamilyAccept=%d\n",PlayerInfo[playerid][pFamilyAccept]);fwrite(hFile, var);
     format(var, 64, "OnDuty=%d\n",PlayerInfo[playerid][pOnDuty]);fwrite(hFile, var);
     format(var, 64, "Wanted=%d\n",PlayerInfo[playerid][pWanted]);fwrite(hFile, var);
     format(var, 64, "Boat=%d\n",PlayerInfo[playerid][pPboatkey]);fwrite(hFile, var);
     fclose(hFile);
     SendClientMessage(playerid, COLOR_YELLOW, " Аккаунт зарегистрирован, вы можете войти введя пароль в окошко. ");
     new loginstring[128];
     new loginname[64];
     GetPlayerName(playerid,loginname,sizeof(loginname));
     format(loginstring,sizeof(loginstring),"Здравствуйте, %s\nВы можете авторизироваться:",loginname);
     ShowPlayerDialog(playerid,12346,DIALOG_STYLE_INPUT,"Вход на Red County Role Play",loginstring,"Войти","Выход");
    }
  }
  return 1;
}



Моё портфолио

Мои работы:
[ Lesson ] Операторы в PAWN.
[ Lesson ] Переменная.
[ GM ] RegSys. ( Last update: 21.04.2012 )


AwmДата: Среда, 16.03.2011, 15:25 | Сообщение # 8
Группа: I'm V.I.P.
Сообщений: 3235
Награды: 55
Город: Tallinn
Репутация: 1661
Замечания: 0%
Статус:
Quote (Latron)
new string3[MAX_PLAYER_NAME];

попытайся поставить
new string3[64];




"Life is hard... life is harder if you're stupid." - John Wayne
[krik]Дата: Среда, 16.03.2011, 15:31 | Сообщение # 9
Постоялец
Группа: I'm V.I.P.
Сообщений: 434
Награды: 20
Город: Самара
Репутация: 438
Замечания: 0%
Статус:
чтобы сохранялось всё достаточно будет заменить string который в public OnPlayerConnect(playerid) на new string[0xff]; и всё нормально будет.
crazy



Я не говорю, что я изменю мир, но я обещаю, что найду такие слова, которые действительно изменят мир, так что выше нос!
©2pac
LatronДата: Среда, 16.03.2011, 21:33 | Сообщение # 10
Группа: I'm V.I.P.
Сообщений: 2115
Награды: 22
Город: Орел
Репутация: 1604
Замечания: 0%
Статус:
у ммя вот что в onplayerconnect что тут заменить ???

Code
public OnPlayerConnect(playerid)
{
  UAS_CreateMoneySysForPlayer(playerid);
  UAS_MoneyTextDrawShowForPlayer(playerid);
     if(IsPlayerNPC(playerid)) return 1;
  new plname[MAX_PLAYER_NAME];
  new ssstring[64];
  new stringa[256];
  GetPlayerIp(playerid,ssstring,sizeof(ssstring));
  format(stringa, sizeof(stringa), "%s (id:%d)(%s) Connected to server.", plname, playerid,ssstring);
  SendAddMessage(COLOR_GREY,stringa);
  if(Security != 0)
  {
      SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
      Kick(playerid);
      return 1;
  }



Моё портфолио

Мои работы:
[ Lesson ] Операторы в PAWN.
[ Lesson ] Переменная.
[ GM ] RegSys. ( Last update: 21.04.2012 )


LatronДата: Среда, 16.03.2011, 21:33 | Сообщение # 11
Группа: I'm V.I.P.
Сообщений: 2115
Награды: 22
Город: Орел
Репутация: 1604
Замечания: 0%
Статус:
у ммя вот что в onplayerconnect что тут заменить ???

Code
public OnPlayerConnect(playerid)
{
  UAS_CreateMoneySysForPlayer(playerid);
  UAS_MoneyTextDrawShowForPlayer(playerid);
     if(IsPlayerNPC(playerid)) return 1;
  new plname[MAX_PLAYER_NAME];
  new ssstring[64];
  new stringa[256];
  GetPlayerIp(playerid,ssstring,sizeof(ssstring));
  format(stringa, sizeof(stringa), "%s (id:%d)(%s) Connected to server.", plname, playerid,ssstring);
  SendAddMessage(COLOR_GREY,stringa);
  if(Security != 0)
  {
      SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
      Kick(playerid);
      return 1;
  }



Моё портфолио

Мои работы:
[ Lesson ] Операторы в PAWN.
[ Lesson ] Переменная.
[ GM ] RegSys. ( Last update: 21.04.2012 )


klimДата: Среда, 16.03.2011, 21:38 | Сообщение # 12
Группа: Продвинутые
Сообщений: 628
Награды: 17
Город: дорог
Репутация: 628
Замечания: 60%
Статус:
Code
  new plname[MAX_PLAYER_NAME];

На:

Code
  new plname[64];



Нубо фотошопер. Рисую макеты сайтов/веб-графику и прочий бред. Естественно не бесплатно. ЛС в помощь)
[krik]Дата: Среда, 16.03.2011, 22:52 | Сообщение # 13
Постоялец
Группа: I'm V.I.P.
Сообщений: 434
Награды: 20
Город: Самара
Репутация: 438
Замечания: 0%
Статус:
Quote (krikkrik)
чтобы сохранялось всё достаточно будет заменить string который в public OnPlayerConnect(playerid) на new string[0xff]; и всё нормально будет.

Quote (Latron)
public OnPlayerConnect(playerid) {   UAS_CreateMoneySysForPlayer(playerid);   UAS_MoneyTextDrawShowForPlayer(playerid);      if(IsPlayerNPC(playerid)) return 1;   new plname[MAX_PLAYER_NAME];   new ssstring[64];   new stringa[256];

вот у тебя new stringa[256]; замени на new stringa[0xff]; и всё!

Quote (klim)
  new plname[MAX_PLAYER_NAME]; На: Code  new plname[64];

смысол? это даст только загрузку аккаунта не больше 64-х[cut=можно не читать :crazy:]('загрузку' это только в том случаее если подгрузка файла т.е аккаунта происходит в OnPlayerConnect)[/cut] символов в нике, а если больше ник? так что лучше не менять это ;)



Я не говорю, что я изменю мир, но я обещаю, что найду такие слова, которые действительно изменят мир, так что выше нос!
©2pac


Сообщение отредактировал krikkrik - Среда, 16.03.2011, 22:55
AwmДата: Четверг, 17.03.2011, 16:07 | Сообщение # 14
Группа: I'm V.I.P.
Сообщений: 3235
Награды: 55
Город: Tallinn
Репутация: 1661
Замечания: 0%
Статус:
Quote (krikkrik)
new string[0xff]; и всё нормально будет.

а ты не в курсе, что 0xff это 255 в десятичной системе ?




"Life is hard... life is harder if you're stupid." - John Wayne
toneysixДата: Четверг, 17.03.2011, 16:23 | Сообщение # 15
Джэдай
Группа: I'm V.I.P.
Сообщений: 1731
Награды: 77
Город: Салават
Репутация: 1825
Замечания: 0%
Статус:
Quote
new stringa[0xff];

Убило xD, какой толк объявлять переменные в шестнадцатеричной позиционной системе счисления? Неужели привычная десятичная система уже не устраивает, мдя, смешно смотреть честное слово, прям у всех понты прут, только так ;) И 255 для чата вовсе нужно, максимальное количество символов для вывода сообщения в чат - 128 символов, а для игрока - 24 символа.



Русскоязычныи портал о MTA/GTA-IV-MP | http://multi-theft-auto.ru
  • Страница 1 из 2
  • 1
  • 2
  • »
Поиск:





 


 


 
Хостинг от uCoz samp.at.ua