| ushermark | Дата: Вторник, 26.10.2010, 01:39 | Сообщение # 34 |
|
.::Offline::.
Вор в законе
Группа: Проверенный
Сообщений: 53
[ 4 ]
Награды: 0
Статус
отсутствует
| Вот я заметил фигню - у меня не форматы, а из файла .ини идёт это всё в public OnPlayerRegister и т.д.: Code new string3[32]; new playername3[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername3, sizeof(playername3)); format(string3, sizeof(string3), "%s.ini", playername3); new File = iniOpen(string3); if(!File) { iniSet(File,"Key",MD5_Hash(password)); PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid); iniSetInt(File,"Level",PlayerInfo[playerid][pLevel]); iniSetInt(File,"AdminLevel",PlayerInfo[playerid][pAdmin]); iniSetInt(File,"DonateRank",PlayerInfo[playerid][pDonateRank]); iniSetInt(File,"UpgradePoints",PlayerInfo[playerid][gPupgrade]); iniSetInt(File,"ConnectedTime",PlayerInfo[playerid][pConnectTime]); iniSetInt(File,"Registered",PlayerInfo[playerid][pReg]); iniSetInt(File,"Sex",PlayerInfo[playerid][pSex]); iniSetInt(File,"Age",PlayerInfo[playerid][pAge]); iniSetInt(File,"Origin",PlayerInfo[playerid][pOrigin]); iniSetInt(File,"CK",PlayerInfo[playerid][pCK]); iniSetInt(File,"Muted",PlayerInfo[playerid][pMuted]); iniSetInt(File,"Respect",PlayerInfo[playerid][pExp]); iniSetInt(File,"Money",PlayerInfo[playerid][pCash]); iniSetInt(File,"Bank",PlayerInfo[playerid][pAccount]); iniSetInt(File,"Crimes",PlayerInfo[playerid][pCrimes]); iniSetInt(File,"Kills",PlayerInfo[playerid][pKills]); iniSetInt(File,"Deaths",PlayerInfo[playerid][pDeaths]); iniSetInt(File,"Arrested",PlayerInfo[playerid][pArrested]); iniSetInt(File,"WantedDeaths",PlayerInfo[playerid][pWantedDeaths]); iniSetInt(File,"Phonebook",PlayerInfo[playerid][pPhoneBook]); iniSetInt(File,"Kpk",PlayerInfo[playerid][pKpk]); iniSetInt(File,"LottoNr",PlayerInfo[playerid][pLottoNr]); iniSetInt(File,"Fishes",PlayerInfo[playerid][pFishes]); iniSetInt(File,"BiggestFish",PlayerInfo[playerid][pBiggestFish]); iniSetInt(File,"Job",PlayerInfo[playerid][pJob]); iniSetInt(File,"Paycheck",PlayerInfo[playerid][pPayCheck]); iniSetInt(File,"HeadValue",PlayerInfo[playerid][pHeadValue]); iniSetInt(File,"Jailed",PlayerInfo[playerid][pJailed]); iniSetInt(File,"JailTime",PlayerInfo[playerid][pJailTime]); iniSetInt(File,"Materials",PlayerInfo[playerid][pMats]); iniSetInt(File,"Drugs",PlayerInfo[playerid][pDrugs]); iniSetInt(File,"Leader",PlayerInfo[playerid][pLeader]); iniSetInt(File,"Member",PlayerInfo[playerid][pMember]); iniSetInt(File,"FMember",PlayerInfo[playerid][pFMember]); iniSetInt(File,"Rank",PlayerInfo[playerid][pRank]); iniSetInt(File,"Zvan",PlayerInfo[playerid][pZvan]); iniSetInt(File,"Char",PlayerInfo[playerid][pChar]); iniSetInt(File,"ContractTime",PlayerInfo[playerid][pContractTime]); iniSetInt(File,"DetSkill",PlayerInfo[playerid][pDetSkill]); iniSetInt(File,"SexSkill",PlayerInfo[playerid][pSexSkill]); iniSetInt(File,"BoxSkill",PlayerInfo[playerid][pBoxSkill]); iniSetInt(File,"LawSkill",PlayerInfo[playerid][pLawSkill]); iniSetInt(File,"MechSkill",PlayerInfo[playerid][pMechSkill]); iniSetInt(File,"JackSkill",PlayerInfo[playerid][pJackSkill]); iniSetInt(File,"VorSkill",PlayerInfo[playerid][pVorSkill]); iniSetInt(File,"CarSkill",PlayerInfo[playerid][pCarSkill]); iniSetInt(File,"NewsSkill",PlayerInfo[playerid][pNewsSkill]); iniSetInt(File,"DrugsSkill",PlayerInfo[playerid][pDrugsSkill]); iniSetInt(File,"CookSkill",PlayerInfo[playerid][pCookSkill]); iniSetInt(File,"FishSkill",PlayerInfo[playerid][pFishSkill]); iniSetFloat(File,"pSHealth",PlayerInfo[playerid][pSHealth]); GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]); iniSetFloat(File,"pHealth",PlayerInfo[playerid][pHealth]); iniSetInt(File,"Int",PlayerInfo[playerid][pInt]); iniSetInt(File,"Local",PlayerInfo[playerid][pLocal]); iniSetInt(File,"Team",PlayerInfo[playerid][pTeam]); iniSetInt(File,"Model",PlayerInfo[playerid][pModel]); iniSetInt(File,"PhoneNr",PlayerInfo[playerid][pPnumber]); iniSetInt(File,"House",PlayerInfo[playerid][pPhousekey]); iniSetInt(File,"Bizz",PlayerInfo[playerid][pPbiskey]); 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]; } iniSetFloat(File,"Pos_x",PlayerInfo[playerid][pPos_x]); iniSetFloat(File,"Pos_y",PlayerInfo[playerid][pPos_y]); iniSetFloat(File,"Pos_z",PlayerInfo[playerid][pPos_z]); iniSetInt(File,"CarLic",PlayerInfo[playerid][pCarLic]); iniSetInt(File,"FlyLic",PlayerInfo[playerid][pFlyLic]); iniSetInt(File,"BoatLic",PlayerInfo[playerid][pBoatLic]); iniSetInt(File,"FishLic",PlayerInfo[playerid][pFishLic]); iniSetInt(File,"GunLic",PlayerInfo[playerid][pGunLic]); iniSetInt(File,"Gun1",PlayerInfo[playerid][pGun1]); iniSetInt(File,"Gun2",PlayerInfo[playerid][pGun2]); iniSetInt(File,"Gun3",PlayerInfo[playerid][pGun3]); iniSetInt(File,"Gun4",PlayerInfo[playerid][pGun4]); iniSetInt(File,"Ammo1",PlayerInfo[playerid][pAmmo1]); iniSetInt(File,"Ammo2",PlayerInfo[playerid][pAmmo2]); iniSetInt(File,"Ammo3",PlayerInfo[playerid][pAmmo3]); iniSetInt(File,"Ammo4",PlayerInfo[playerid][pAmmo4]); iniSetInt(File,"CarTime",PlayerInfo[playerid][pCarTime]); iniSetInt(File,"VorTime",PlayerInfo[playerid][pVorTime]); iniSetInt(File,"PayDay",PlayerInfo[playerid][pPayDay]); iniSetInt(File,"PayDayHad",PlayerInfo[playerid][pPayDayHad]); iniSetInt(File,"CDPlayer",PlayerInfo[playerid][pCDPlayer]); iniSetInt(File,"Wins",PlayerInfo[playerid][pWins]); iniSetInt(File,"Loses",PlayerInfo[playerid][pLoses]); iniSetInt(File,"AlcoholPerk",PlayerInfo[playerid][pAlcoholPerk]); iniSetInt(File,"DrugPerk",PlayerInfo[playerid][pDrugPerk]); iniSetInt(File,"MiserPerk",PlayerInfo[playerid][pMiserPerk]); iniSetInt(File,"PainPerk",PlayerInfo[playerid][pPainPerk]); iniSetInt(File,"TraderPerk",PlayerInfo[playerid][pTraderPerk]); iniSetInt(File,"Tutorial",0); iniSetInt(File,"MuteTime",PlayerInfo[playerid][pMuteTime]); iniSetInt(File,"AutoKey",PlayerInfo[playerid][pAutoKey]); iniSetInt(File,"Mission",PlayerInfo[playerid][pMissionNr]); iniSetInt(File,"Warnings",PlayerInfo[playerid][pWarns]); iniSetInt(File,"Adjustable",PlayerInfo[playerid][pAdjustable]); iniSetInt(File,"Fuel",PlayerInfo[playerid][pFuel]); iniSetInt(File,"Married",PlayerInfo[playerid][pFuel]); iniSet(File,"MarriedTo",PlayerInfo[playerid][pMarriedTo]); iniClose(File); помогите, как туда впихнуть строки для силы. Если поможет, с меня +++
|
| |
| |