PARTNERI:
-UPOZORENJE-

Samo registrovani članovi mogu da vide/koriste forum u celini.
Prijavite se ili registrujte nalog na Balkan SA-MP forumu.


Autor Tema: [Pomoc] pFightingStill nece da se sacuva  (Pročitano 454 puta)

0 članova i 1 gost pregledaju ovu temu.

Van mreže 🅢🅘🅜🅔🅒

  • Transformer
  • *
  • Poruke: 70
  • Pol: Muškarac
  • Carpe diem!
pFightingStill nece da se sacuva
« poslato: Novembar 17, 2017, 13:08:14 posle podne »
Skripta koju koristim: skripta od 0
Detaljan opis problema: dam igracu stil tuce i ne sacuva kad izadje sa srv
Dio skripte: ispod je kod
Neke slike/video za lakse dobivanje pomoci(neobavezno): //


YCMD:astiltuce(playerid, params[], help)
{
#pragma unused help
new style, player, sendername[MAX_PLAYER_NAME], str[128];
if(PlayerInfo[playerid][pAdmin] == 9999 || PlayerInfo[playerid][pAdmin] < 6) return SCM(playerid, BOJA_CRVENA, "GRESKA: Niste ovlasceni da koristite ovu komandu!");
if(sscanf(params, "ri", player, style)) return SCM(playerid, BOJA_PLAVA, "KORISCENJE: /astiltuce [id/deo imena] [stil]");
else if (player == INVALID_PLAYER_ID) return SCM(playerid, BOJA_CRVENA, "GRESKA: Igrac ne postoji!");
else if (style < 4 || (style > 7 && style < 15) || style > 16) return SCM(playerid, BOJA_CRVENA, "GRESKA: Stil moze biti u opsegu 4-7 i 15-16!");
PlayerInfo[playerid][pFightingStyle] = style;
sendername = GetPlayerNameEx(player);
format(str, sizeof(str), "Postavili ste %s brobeni stil na: %s.", sendername, style);
SCM(playerid, BOJA_CRVENA, str);

sendername = GetPlayerNameEx(playerid);
format(str, sizeof(str), "Admin %s Vam je postavio borbeni still na: %s.", sendername, style);
SCM(player, BOJA_CRVENA, str);
SetPlayerFightingStyle(player, style);
SavePlayer(playerid);
return 1;
}
Old Express
 

Van mreže Bolex_

Odg: pFightingStill nece da se sacuva
« Odgovor #1 poslato: Novembar 17, 2017, 13:15:59 posle podne »
Postavi SavePlayer()
Former Developer | COD: Lords Of War - Modern Warfare 3 | Stunt Planet | Global Warfare |
 

Van mreže 🅢🅘🅜🅔🅒

  • Transformer
  • *
  • Poruke: 70
  • Pol: Muškarac
  • Carpe diem!
Odg: pFightingStill nece da se sacuva
« Odgovor #2 poslato: Novembar 17, 2017, 13:16:44 posle podne »
ako mozes da mi objasnis samo sta je to CB hahah :D
Old Express
 

Van mreže Bolex_

Odg: pFightingStill nece da se sacuva
« Odgovor #3 poslato: Novembar 17, 2017, 13:27:46 posle podne »
ako mozes da mi objasnis samo sta je to CB hahah :D

Ma zabunio sam se, daj nam taj stock SavePlayer
Former Developer | COD: Lords Of War - Modern Warfare 3 | Stunt Planet | Global Warfare |
 

Van mreže 🅢🅘🅜🅔🅒

  • Transformer
  • *
  • Poruke: 70
  • Pol: Muškarac
  • Carpe diem!
Odg: pFightingStill nece da se sacuva
« Odgovor #4 poslato: Novembar 17, 2017, 13:34:43 posle podne »
imam samo ovo
stock PlayerFightingStyle(playerid)
{
new string[32];
switch(PlayerInfo[playerid][pFightingStyle])
{
    case 4: string = "Normal";
    case 5: string = "Boxing";
    case 6: string = "Kung-Fu";
    case 7: string = "Knee-Head";
    case 15: string = "Grab n Kick";
    case 16: string = "Elbow";
}
return string;
}
Old Express
 

Van mreže Bolex_

Odg: pFightingStill nece da se sacuva
« Odgovor #5 poslato: Novembar 17, 2017, 13:36:09 posle podne »
Pa moraš nekako spremat i ucitavat fight stlye.

Postavi SavePlayer(playerid); i isto tako postavi kod za ucitavanje podataka.
« Poslednja izmena: Novembar 17, 2017, 13:37:35 posle podne Bolex_ »
Former Developer | COD: Lords Of War - Modern Warfare 3 | Stunt Planet | Global Warfare |
 

Van mreže 🅢🅘🅜🅔🅒

  • Transformer
  • *
  • Poruke: 70
  • Pol: Muškarac
  • Carpe diem!
Odg: pFightingStill nece da se sacuva
« Odgovor #6 poslato: Novembar 17, 2017, 13:37:29 posle podne »
malo sam tup :D ahhahahha ova skripta svugde ima Save player al sacuvava mi i auta i sve al za pFightying style nzm kako da napravim? neka pomoc?
Old Express
 

Van mreže 🅢🅘🅜🅔🅒

  • Transformer
  • *
  • Poruke: 70
  • Pol: Muškarac
  • Carpe diem!
Odg: pFightingStill nece da se sacuva
« Odgovor #7 poslato: Novembar 17, 2017, 13:39:00 posle podne »
jel moze ovako?
stock SavePlayer(playerid)
{
 new fight = PlayerInfo[playerid][pFightingStyle];
 return SavePlayer(playerid);
}
Old Express
 

Van mreže 🅢🅘🅜🅔🅒

  • Transformer
  • *
  • Poruke: 70
  • Pol: Muškarac
  • Carpe diem!
Odg: pFightingStill nece da se sacuva
« Odgovor #8 poslato: Novembar 17, 2017, 13:40:06 posle podne »
vidis ima ovo
forward SavePlayer(playerid);
public SavePlayer(playerid)
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File, "PlayerData");
INI_WriteInt(File, "Registered", PlayerInfo[playerid][pRegistered]);
INI_WriteInt(File, "Logged", PlayerInfo[playerid][pLogged]);
INI_WriteInt(File, "Sex", PlayerInfo[playerid][pSex]);
INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
INI_WriteInt(File, "Country", PlayerInfo[playerid][pCountry]);
INI_WriteInt(File, "IdentityCard", PlayerInfo[playerid][pIdentityCard]);
INI_WriteInt(File, "Banned", PlayerInfo[playerid][pBanned]);
INI_WriteInt(File, "BannedTime", PlayerInfo[playerid][pBannedTime]);
INI_WriteInt(File, "Skin", PlayerInfo[playerid][pSkin]);
INI_WriteInt(File, "Money", PlayerInfo[playerid][pMoney]);
INI_WriteFloat(File, "SpawnX", PlayerInfo[playerid][pSpawnX]);
INI_WriteFloat(File, "SpawnY", PlayerInfo[playerid][pSpawnY]);
INI_WriteFloat(File, "SpawnZ", PlayerInfo[playerid][pSpawnZ]);
INI_WriteInt(File, "BankAccount", PlayerInfo[playerid][pBankAccount]);
INI_WriteInt(File, "BankMoney", PlayerInfo[playerid][pBankMoney]);
INI_WriteInt(File, "BankCredit", PlayerInfo[playerid][pBankCredit]);
INI_WriteInt(File, "Admin", PlayerInfo[playerid][pAdmin]);
INI_WriteInt(File, "Donator", PlayerInfo[playerid][pDonator]);
INI_WriteInt(File, "DonatorPoints", PlayerInfo[playerid][pDonatorPoints]);
INI_WriteInt(File, "Level", PlayerInfo[playerid][pLevel]);
INI_WriteInt(File, "Respect", PlayerInfo[playerid][pRespect]);
INI_WriteInt(File, "Hours", PlayerInfo[playerid][pHours]);
INI_WriteInt(File, "PlayTime", PlayerInfo[playerid][pPlaytime]);
INI_WriteInt(File, "PayCheck", PlayerInfo[playerid][pPayCheck]);
INI_WriteInt(File, "Dead", PlayerInfo[playerid][pDead]);
INI_WriteInt(File, "Kills", PlayerInfo[playerid][pKills]);
INI_WriteInt(File, "Deaths", PlayerInfo[playerid][pDeaths]);
INI_WriteInt(File, "Job", PlayerInfo[playerid][pJob]);
INI_WriteInt(File, "JobContract", PlayerInfo[playerid][pJobContract]);
INI_WriteInt(File, "Mobile", PlayerInfo[playerid][pMobile]);
INI_WriteInt(File, "Number", PlayerInfo[playerid][pMobileNumber]);
INI_WriteInt(File, "Credit", PlayerInfo[playerid][pMobileCredit]);
INI_WriteInt(File, "AddressBook", PlayerInfo[playerid][pAddressBook]);
INI_WriteInt(File, "DetectivePoints", PlayerInfo[playerid][pDetectivePoints]);
INI_WriteInt(File, "DetectiveLevel", PlayerInfo[playerid][pDetectiveLevel]);
INI_WriteInt(File, "TruckmanPoints", PlayerInfo[playerid][pTruckmanPoints]);
INI_WriteInt(File, "TruckmanLevel", PlayerInfo[playerid][pTruckmanLevel]);
INI_WriteInt(File, "TaxiPoints", PlayerInfo[playerid][pTaxiPoints]);
INI_WriteInt(File, "TaxiLevel", PlayerInfo[playerid][pTaxiLevel]);
INI_WriteInt(File, "MechanicPoints", PlayerInfo[playerid][pMechanicPoints]);
INI_WriteInt(File, "MechanicLevel", PlayerInfo[playerid][pMechanicLevel]);
INI_WriteInt(File, "Drugs", PlayerInfo[playerid][pDrug]);
INI_WriteInt(File, "Mats", PlayerInfo[playerid][pMats]);
INI_WriteInt(File, "Leader", PlayerInfo[playerid][pOLeader]);
INI_WriteInt(File, "Member", PlayerInfo[playerid][pOMember]);
INI_WriteInt(File, "Rank", PlayerInfo[playerid][pORank]);
INI_WriteInt(File, "OrgSkin", PlayerInfo[playerid][pOSkin]);
INI_WriteInt(File, "Wanted", PlayerInfo[playerid][pWanted]);
INI_WriteInt(File, "WantedTimes", PlayerInfo[playerid][pWantedTimes]);
INI_WriteInt(File, "Arrested", PlayerInfo[playerid][pArrested]);
INI_WriteInt(File, "ArrestedTime", PlayerInfo[playerid][pArrestedTime]);
INI_WriteInt(File, "ArrestedTimes", PlayerInfo[playerid][pArrestedTimes]);
INI_WriteInt(File, "Business", PlayerInfo[playerid][pBizzID]);
INI_WriteInt(File, "SpecBusiness", PlayerInfo[playerid][pSBizzID]);
INI_WriteInt(File, "House", PlayerInfo[playerid][pHouseID]);
INI_WriteInt(File, "Apartment", PlayerInfo[playerid][pApartmentID]);
INI_WriteInt(File, "Vehicle1", PlayerInfo[playerid][pVehicle1]);
INI_WriteInt(File, "Vehicle1ControlID", PlayerInfo[playerid][pVehicle1ControlID]);
INI_WriteInt(File, "Vehicle2", PlayerInfo[playerid][pVehicle2]);
INI_WriteInt(File, "Vehicle2ControlID", PlayerInfo[playerid][pVehicle2ControlID]);
INI_WriteInt(File, "Vehicle3", PlayerInfo[playerid][pVehicle3]);
INI_WriteInt(File, "Vehicle3ControlID", PlayerInfo[playerid][pVehicle3ControlID]);
INI_WriteInt(File, "DrivingLicence", PlayerInfo[playerid][pDrivingLicence]);
INI_WriteInt(File, "FlyingLicence", PlayerInfo[playerid][pFlyingLicence]);
INI_WriteInt(File, "SailingLicence", PlayerInfo[playerid][pSailingLicence]);
INI_WriteInt(File, "Muted", PlayerInfo[playerid][pMuted]);
INI_WriteInt(File, "MutedTime", PlayerInfo[playerid][pMutedTime]);
INI_WriteInt(File, "PistolSkill", PlayerInfo[playerid][pPistolSkill]);
INI_WriteInt(File, "SilencedSkill", PlayerInfo[playerid][pSilencedSkill]);
INI_WriteInt(File, "DesertSkill", PlayerInfo[playerid][pDesertSkill]);
INI_WriteInt(File, "ShotgunSkill", PlayerInfo[playerid][pShotgunSkill]);
INI_WriteInt(File, "SawnoffSkill", PlayerInfo[playerid][pSawnoffSkill]);
INI_WriteInt(File, "CombatSkill", PlayerInfo[playerid][pCombatSkill]);
INI_WriteInt(File, "UziSkill", PlayerInfo[playerid][pUziSkill]);
INI_WriteInt(File, "MP5Skill", PlayerInfo[playerid][pMP5Skill]);
INI_WriteInt(File, "AK47Skill", PlayerInfo[playerid][pAK47Skill]);
INI_WriteInt(File, "M4Skill", PlayerInfo[playerid][pM4Skill]);
INI_WriteInt(File, "SniperSkill", PlayerInfo[playerid][pSniperSkill]);
INI_WriteInt(File, "FightingStyle", PlayerInfo[playerid][pFightingStyle]);
INI_Close(File);
return 1;
}
Old Express
 

Van mreže Bolex_

Odg: pFightingStill nece da se sacuva
« Odgovor #9 poslato: Novembar 17, 2017, 13:48:36 posle podne »
Isto tako u SavePlayer stock postavi PlayerInfo[playerid][pFightingStyle] = GetPlayerFightingStyle(playerid);

E sada, pokaži nam kod za ucitavanje/load igracevih podataka.
Former Developer | COD: Lords Of War - Modern Warfare 3 | Stunt Planet | Global Warfare |
 

Van mreže 🅢🅘🅜🅔🅒

  • Transformer
  • *
  • Poruke: 70
  • Pol: Muškarac
  • Carpe diem!
Odg: pFightingStill nece da se sacuva
« Odgovor #10 poslato: Novembar 17, 2017, 13:54:49 posle podne »
ne kapiram to prvo eo loaduser
forward LoadUser_data(playerid, name[], value[]);
public LoadUser_data(playerid, name[], value[])
{
INI_String("Password", PlayerInfo[playerid][pPassword], 129);
INI_Int("Registered", PlayerInfo[playerid][pRegistered]);
INI_Int("Logged", PlayerInfo[playerid][pLogged]);
INI_Int("Sex", PlayerInfo[playerid][pSex]);
INI_Int("Age", PlayerInfo[playerid][pAge]);
INI_Int("Country", PlayerInfo[playerid][pCountry]);
INI_Int("IdentityCard", PlayerInfo[playerid][pIdentityCard]);
INI_Int("Banned", PlayerInfo[playerid][pBanned]);
INI_Int("BannedTime", PlayerInfo[playerid][pBannedTime]);
INI_Int("Skin", PlayerInfo[playerid][pSkin]);
INI_Int("Money", PlayerInfo[playerid][pMoney]);
INI_Float("SpawnX", PlayerInfo[playerid][pSpawnX]);
INI_Float("SpawnY", PlayerInfo[playerid][pSpawnY]);
INI_Float("SpawnZ", PlayerInfo[playerid][pSpawnZ]);
INI_Int("BankAccount", PlayerInfo[playerid][pBankAccount]);
INI_Int("BankMoney", PlayerInfo[playerid][pBankMoney]);
INI_Int("BankCredit", PlayerInfo[playerid][pBankCredit]);
INI_Int("Admin", PlayerInfo[playerid][pAdmin]);
INI_Int("Donator", PlayerInfo[playerid][pDonator]);
INI_Int("DonatorPoints", PlayerInfo[playerid][pDonatorPoints]);
INI_Int("Level", PlayerInfo[playerid][pLevel]);
INI_Int("Respect", PlayerInfo[playerid][pRespect]);
INI_Int("Hours", PlayerInfo[playerid][pHours]);
INI_Int("PlayTime", PlayerInfo[playerid][pPlaytime]);
INI_Int("PayCheck", PlayerInfo[playerid][pPayCheck]);
INI_Int("Dead", PlayerInfo[playerid][pDead]);
INI_Int("Kills", PlayerInfo[playerid][pKills]);
INI_Int("Deaths", PlayerInfo[playerid][pDeaths]);
INI_Int("Job", PlayerInfo[playerid][pJob]);
INI_Int("JobContract", PlayerInfo[playerid][pJobContract]);
INI_Int("Mobile", PlayerInfo[playerid][pMobile]);
INI_Int("Number", PlayerInfo[playerid][pMobileNumber]);
INI_Int("Credit", PlayerInfo[playerid][pMobileCredit]);
INI_Int("AddressBook", PlayerInfo[playerid][pAddressBook]);
INI_Int("DetectivePoints", PlayerInfo[playerid][pDetectivePoints]);
INI_Int("DetectiveLevel", PlayerInfo[playerid][pDetectiveLevel]);
INI_Int("TruckmanPoints", PlayerInfo[playerid][pTruckmanPoints]);
INI_Int("Truckmanlevel", PlayerInfo[playerid][pTruckmanLevel]);
INI_Int("TaxiPoints", PlayerInfo[playerid][pTaxiPoints]);
INI_Int("TaxiLevel", PlayerInfo[playerid][pTaxiLevel]);
INI_Int("MechanicPoints", PlayerInfo[playerid][pMechanicPoints]);
    INI_Int("MechanicLevel", PlayerInfo[playerid][pMechanicLevel]);
    INI_Int("Drugs", PlayerInfo[playerid][pDrug]);
INI_Int("Mats", PlayerInfo[playerid][pMats]);
INI_Int("Leader", PlayerInfo[playerid][pOLeader]);
INI_Int("Member", PlayerInfo[playerid][pOMember]);
INI_Int("Rank", PlayerInfo[playerid][pORank]);
INI_Int("Wanted", PlayerInfo[playerid][pWanted]);
INI_Int("WantedTimes", PlayerInfo[playerid][pWantedTimes]);
INI_Int("Arrested", PlayerInfo[playerid][pArrested]);
INI_Int("ArrestedTime", PlayerInfo[playerid][pArrestedTime]);
INI_Int("ArrestedTimes", PlayerInfo[playerid][pArrestedTimes]);
INI_Int("OrgSkin", PlayerInfo[playerid][pOSkin]);
INI_Int("Business", PlayerInfo[playerid][pBizzID]);
INI_Int("SpecBusiness", PlayerInfo[playerid][pSBizzID]);
INI_Int("House", PlayerInfo[playerid][pHouseID]);
INI_Int("Apartment", PlayerInfo[playerid][pApartmentID]);
INI_Int("Vehicle1", PlayerInfo[playerid][pVehicle1]);
INI_Int("Vehicle1ControlID", PlayerInfo[playerid][pVehicle1ControlID]);
INI_Int("Vehicle2", PlayerInfo[playerid][pVehicle2]);
INI_Int("Vehicle2ControlID", PlayerInfo[playerid][pVehicle2ControlID]);
INI_Int("Vehicle3", PlayerInfo[playerid][pVehicle3]);
INI_Int("Vehicle3ControlID", PlayerInfo[playerid][pVehicle3ControlID]);
INI_Int("DrivingLicence", PlayerInfo[playerid][pDrivingLicence]);
INI_Int("FlyingLicence", PlayerInfo[playerid][pFlyingLicence]);
INI_Int("SailingLicence", PlayerInfo[playerid][pSailingLicence]);
INI_Int("Muted", PlayerInfo[playerid][pMuted]);
INI_Int("MutedTime", PlayerInfo[playerid][pMutedTime]);
INI_Int("PistolSkill", PlayerInfo[playerid][pPistolSkill]);
INI_Int("SilencedSkill", PlayerInfo[playerid][pSilencedSkill]);
INI_Int("DesertSkill", PlayerInfo[playerid][pDesertSkill]);
INI_Int("ShotgunSkill", PlayerInfo[playerid][pShotgunSkill]);
INI_Int("SawnoffSkill", PlayerInfo[playerid][pSawnoffSkill]);
INI_Int("CombatSkill", PlayerInfo[playerid][pCombatSkill]);
INI_Int("UziSkill", PlayerInfo[playerid][pUziSkill]);
INI_Int("MP5Skill", PlayerInfo[playerid][pMP5Skill]);
INI_Int("AK47Skill", PlayerInfo[playerid][pAK47Skill]);
INI_Int("M4Skill", PlayerInfo[playerid][pM4Skill]);
INI_Int("SniperSkill", PlayerInfo[playerid][pSniperSkill]);
INI_Int("FightingStyle", PlayerInfo[playerid][pFightingStyle]);
return 1;
}
Old Express
 

Van mreže Bolex_

Odg: pFightingStill nece da se sacuva
« Odgovor #11 poslato: Novembar 17, 2017, 13:59:21 posle podne »
Ajde, pokušaj ovako, malo sam zahrđao u Y_INI

forward SavePlayer(playerid);
public SavePlayer(playerid)
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File, "PlayerData");
INI_WriteInt(File, "Registered", PlayerInfo[playerid][pRegistered]);
INI_WriteInt(File, "Logged", PlayerInfo[playerid][pLogged]);
INI_WriteInt(File, "Sex", PlayerInfo[playerid][pSex]);
INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
INI_WriteInt(File, "Country", PlayerInfo[playerid][pCountry]);
INI_WriteInt(File, "IdentityCard", PlayerInfo[playerid][pIdentityCard]);
INI_WriteInt(File, "Banned", PlayerInfo[playerid][pBanned]);
INI_WriteInt(File, "BannedTime", PlayerInfo[playerid][pBannedTime]);
INI_WriteInt(File, "Skin", PlayerInfo[playerid][pSkin]);
INI_WriteInt(File, "Money", PlayerInfo[playerid][pMoney]);
INI_WriteFloat(File, "SpawnX", PlayerInfo[playerid][pSpawnX]);
INI_WriteFloat(File, "SpawnY", PlayerInfo[playerid][pSpawnY]);
INI_WriteFloat(File, "SpawnZ", PlayerInfo[playerid][pSpawnZ]);
INI_WriteInt(File, "BankAccount", PlayerInfo[playerid][pBankAccount]);
INI_WriteInt(File, "BankMoney", PlayerInfo[playerid][pBankMoney]);
INI_WriteInt(File, "BankCredit", PlayerInfo[playerid][pBankCredit]);
INI_WriteInt(File, "Admin", PlayerInfo[playerid][pAdmin]);
INI_WriteInt(File, "Donator", PlayerInfo[playerid][pDonator]);
INI_WriteInt(File, "DonatorPoints", PlayerInfo[playerid][pDonatorPoints]);
INI_WriteInt(File, "Level", PlayerInfo[playerid][pLevel]);
INI_WriteInt(File, "Respect", PlayerInfo[playerid][pRespect]);
INI_WriteInt(File, "Hours", PlayerInfo[playerid][pHours]);
INI_WriteInt(File, "PlayTime", PlayerInfo[playerid][pPlaytime]);
INI_WriteInt(File, "PayCheck", PlayerInfo[playerid][pPayCheck]);
INI_WriteInt(File, "Dead", PlayerInfo[playerid][pDead]);
INI_WriteInt(File, "Kills", PlayerInfo[playerid][pKills]);
INI_WriteInt(File, "Deaths", PlayerInfo[playerid][pDeaths]);
INI_WriteInt(File, "Job", PlayerInfo[playerid][pJob]);
INI_WriteInt(File, "JobContract", PlayerInfo[playerid][pJobContract]);
INI_WriteInt(File, "Mobile", PlayerInfo[playerid][pMobile]);
INI_WriteInt(File, "Number", PlayerInfo[playerid][pMobileNumber]);
INI_WriteInt(File, "Credit", PlayerInfo[playerid][pMobileCredit]);
INI_WriteInt(File, "AddressBook", PlayerInfo[playerid][pAddressBook]);
INI_WriteInt(File, "DetectivePoints", PlayerInfo[playerid][pDetectivePoints]);
INI_WriteInt(File, "DetectiveLevel", PlayerInfo[playerid][pDetectiveLevel]);
INI_WriteInt(File, "TruckmanPoints", PlayerInfo[playerid][pTruckmanPoints]);
INI_WriteInt(File, "TruckmanLevel", PlayerInfo[playerid][pTruckmanLevel]);
INI_WriteInt(File, "TaxiPoints", PlayerInfo[playerid][pTaxiPoints]);
INI_WriteInt(File, "TaxiLevel", PlayerInfo[playerid][pTaxiLevel]);
INI_WriteInt(File, "MechanicPoints", PlayerInfo[playerid][pMechanicPoints]);
INI_WriteInt(File, "MechanicLevel", PlayerInfo[playerid][pMechanicLevel]);
INI_WriteInt(File, "Drugs", PlayerInfo[playerid][pDrug]);
INI_WriteInt(File, "Mats", PlayerInfo[playerid][pMats]);
INI_WriteInt(File, "Leader", PlayerInfo[playerid][pOLeader]);
INI_WriteInt(File, "Member", PlayerInfo[playerid][pOMember]);
INI_WriteInt(File, "Rank", PlayerInfo[playerid][pORank]);
INI_WriteInt(File, "OrgSkin", PlayerInfo[playerid][pOSkin]);
INI_WriteInt(File, "Wanted", PlayerInfo[playerid][pWanted]);
INI_WriteInt(File, "WantedTimes", PlayerInfo[playerid][pWantedTimes]);
INI_WriteInt(File, "Arrested", PlayerInfo[playerid][pArrested]);
INI_WriteInt(File, "ArrestedTime", PlayerInfo[playerid][pArrestedTime]);
INI_WriteInt(File, "ArrestedTimes", PlayerInfo[playerid][pArrestedTimes]);
INI_WriteInt(File, "Business", PlayerInfo[playerid][pBizzID]);
INI_WriteInt(File, "SpecBusiness", PlayerInfo[playerid][pSBizzID]);
INI_WriteInt(File, "House", PlayerInfo[playerid][pHouseID]);
INI_WriteInt(File, "Apartment", PlayerInfo[playerid][pApartmentID]);
INI_WriteInt(File, "Vehicle1", PlayerInfo[playerid][pVehicle1]);
INI_WriteInt(File, "Vehicle1ControlID", PlayerInfo[playerid][pVehicle1ControlID]);
INI_WriteInt(File, "Vehicle2", PlayerInfo[playerid][pVehicle2]);
INI_WriteInt(File, "Vehicle2ControlID", PlayerInfo[playerid][pVehicle2ControlID]);
INI_WriteInt(File, "Vehicle3", PlayerInfo[playerid][pVehicle3]);
INI_WriteInt(File, "Vehicle3ControlID", PlayerInfo[playerid][pVehicle3ControlID]);
INI_WriteInt(File, "DrivingLicence", PlayerInfo[playerid][pDrivingLicence]);
INI_WriteInt(File, "FlyingLicence", PlayerInfo[playerid][pFlyingLicence]);
INI_WriteInt(File, "SailingLicence", PlayerInfo[playerid][pSailingLicence]);
INI_WriteInt(File, "Muted", PlayerInfo[playerid][pMuted]);
INI_WriteInt(File, "MutedTime", PlayerInfo[playerid][pMutedTime]);
INI_WriteInt(File, "PistolSkill", PlayerInfo[playerid][pPistolSkill]);
INI_WriteInt(File, "SilencedSkill", PlayerInfo[playerid][pSilencedSkill]);
INI_WriteInt(File, "DesertSkill", PlayerInfo[playerid][pDesertSkill]);
INI_WriteInt(File, "ShotgunSkill", PlayerInfo[playerid][pShotgunSkill]);
INI_WriteInt(File, "SawnoffSkill", PlayerInfo[playerid][pSawnoffSkill]);
INI_WriteInt(File, "CombatSkill", PlayerInfo[playerid][pCombatSkill]);
INI_WriteInt(File, "UziSkill", PlayerInfo[playerid][pUziSkill]);
INI_WriteInt(File, "MP5Skill", PlayerInfo[playerid][pMP5Skill]);
INI_WriteInt(File, "AK47Skill", PlayerInfo[playerid][pAK47Skill]);
INI_WriteInt(File, "M4Skill", PlayerInfo[playerid][pM4Skill]);
INI_WriteInt(File, "SniperSkill", PlayerInfo[playerid][pSniperSkill]);
INI_WriteInt(File, "FightingStyle", PlayerInfo[playerid][pFightingStyle]); PlayerInfo[playerid][pFightingStyle] = GetPlayerFightingStyle(playerid);
INI_Close(File);
return 1;
}

forward LoadUser_data(playerid, name[], value[]);
public LoadUser_data(playerid, name[], value[])
{
INI_String("Password", PlayerInfo[playerid][pPassword], 129);
INI_Int("Registered", PlayerInfo[playerid][pRegistered]);
INI_Int("Logged", PlayerInfo[playerid][pLogged]);
INI_Int("Sex", PlayerInfo[playerid][pSex]);
INI_Int("Age", PlayerInfo[playerid][pAge]);
INI_Int("Country", PlayerInfo[playerid][pCountry]);
INI_Int("IdentityCard", PlayerInfo[playerid][pIdentityCard]);
INI_Int("Banned", PlayerInfo[playerid][pBanned]);
INI_Int("BannedTime", PlayerInfo[playerid][pBannedTime]);
INI_Int("Skin", PlayerInfo[playerid][pSkin]);
INI_Int("Money", PlayerInfo[playerid][pMoney]);
INI_Float("SpawnX", PlayerInfo[playerid][pSpawnX]);
INI_Float("SpawnY", PlayerInfo[playerid][pSpawnY]);
INI_Float("SpawnZ", PlayerInfo[playerid][pSpawnZ]);
INI_Int("BankAccount", PlayerInfo[playerid][pBankAccount]);
INI_Int("BankMoney", PlayerInfo[playerid][pBankMoney]);
INI_Int("BankCredit", PlayerInfo[playerid][pBankCredit]);
INI_Int("Admin", PlayerInfo[playerid][pAdmin]);
INI_Int("Donator", PlayerInfo[playerid][pDonator]);
INI_Int("DonatorPoints", PlayerInfo[playerid][pDonatorPoints]);
INI_Int("Level", PlayerInfo[playerid][pLevel]);
INI_Int("Respect", PlayerInfo[playerid][pRespect]);
INI_Int("Hours", PlayerInfo[playerid][pHours]);
INI_Int("PlayTime", PlayerInfo[playerid][pPlaytime]);
INI_Int("PayCheck", PlayerInfo[playerid][pPayCheck]);
INI_Int("Dead", PlayerInfo[playerid][pDead]);
INI_Int("Kills", PlayerInfo[playerid][pKills]);
INI_Int("Deaths", PlayerInfo[playerid][pDeaths]);
INI_Int("Job", PlayerInfo[playerid][pJob]);
INI_Int("JobContract", PlayerInfo[playerid][pJobContract]);
INI_Int("Mobile", PlayerInfo[playerid][pMobile]);
INI_Int("Number", PlayerInfo[playerid][pMobileNumber]);
INI_Int("Credit", PlayerInfo[playerid][pMobileCredit]);
INI_Int("AddressBook", PlayerInfo[playerid][pAddressBook]);
INI_Int("DetectivePoints", PlayerInfo[playerid][pDetectivePoints]);
INI_Int("DetectiveLevel", PlayerInfo[playerid][pDetectiveLevel]);
INI_Int("TruckmanPoints", PlayerInfo[playerid][pTruckmanPoints]);
INI_Int("Truckmanlevel", PlayerInfo[playerid][pTruckmanLevel]);
INI_Int("TaxiPoints", PlayerInfo[playerid][pTaxiPoints]);
INI_Int("TaxiLevel", PlayerInfo[playerid][pTaxiLevel]);
INI_Int("MechanicPoints", PlayerInfo[playerid][pMechanicPoints]);
    INI_Int("MechanicLevel", PlayerInfo[playerid][pMechanicLevel]);
    INI_Int("Drugs", PlayerInfo[playerid][pDrug]);
INI_Int("Mats", PlayerInfo[playerid][pMats]);
INI_Int("Leader", PlayerInfo[playerid][pOLeader]);
INI_Int("Member", PlayerInfo[playerid][pOMember]);
INI_Int("Rank", PlayerInfo[playerid][pORank]);
INI_Int("Wanted", PlayerInfo[playerid][pWanted]);
INI_Int("WantedTimes", PlayerInfo[playerid][pWantedTimes]);
INI_Int("Arrested", PlayerInfo[playerid][pArrested]);
INI_Int("ArrestedTime", PlayerInfo[playerid][pArrestedTime]);
INI_Int("ArrestedTimes", PlayerInfo[playerid][pArrestedTimes]);
INI_Int("OrgSkin", PlayerInfo[playerid][pOSkin]);
INI_Int("Business", PlayerInfo[playerid][pBizzID]);
INI_Int("SpecBusiness", PlayerInfo[playerid][pSBizzID]);
INI_Int("House", PlayerInfo[playerid][pHouseID]);
INI_Int("Apartment", PlayerInfo[playerid][pApartmentID]);
INI_Int("Vehicle1", PlayerInfo[playerid][pVehicle1]);
INI_Int("Vehicle1ControlID", PlayerInfo[playerid][pVehicle1ControlID]);
INI_Int("Vehicle2", PlayerInfo[playerid][pVehicle2]);
INI_Int("Vehicle2ControlID", PlayerInfo[playerid][pVehicle2ControlID]);
INI_Int("Vehicle3", PlayerInfo[playerid][pVehicle3]);
INI_Int("Vehicle3ControlID", PlayerInfo[playerid][pVehicle3ControlID]);
INI_Int("DrivingLicence", PlayerInfo[playerid][pDrivingLicence]);
INI_Int("FlyingLicence", PlayerInfo[playerid][pFlyingLicence]);
INI_Int("SailingLicence", PlayerInfo[playerid][pSailingLicence]);
INI_Int("Muted", PlayerInfo[playerid][pMuted]);
INI_Int("MutedTime", PlayerInfo[playerid][pMutedTime]);
INI_Int("PistolSkill", PlayerInfo[playerid][pPistolSkill]);
INI_Int("SilencedSkill", PlayerInfo[playerid][pSilencedSkill]);
INI_Int("DesertSkill", PlayerInfo[playerid][pDesertSkill]);
INI_Int("ShotgunSkill", PlayerInfo[playerid][pShotgunSkill]);
INI_Int("SawnoffSkill", PlayerInfo[playerid][pSawnoffSkill]);
INI_Int("CombatSkill", PlayerInfo[playerid][pCombatSkill]);
INI_Int("UziSkill", PlayerInfo[playerid][pUziSkill]);
INI_Int("MP5Skill", PlayerInfo[playerid][pMP5Skill]);
INI_Int("AK47Skill", PlayerInfo[playerid][pAK47Skill]);
INI_Int("M4Skill", PlayerInfo[playerid][pM4Skill]);
INI_Int("SniperSkill", PlayerInfo[playerid][pSniperSkill]);
INI_Int("FightingStyle", PlayerInfo[playerid][pFightingStyle]); SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFightingStyle]);
return 1;
}
Former Developer | COD: Lords Of War - Modern Warfare 3 | Stunt Planet | Global Warfare |
 

Na mreži Shomyy

Odg: pFightingStill nece da se sacuva
« Odgovor #12 poslato: Novembar 17, 2017, 14:50:55 posle podne »
Postavis
public OnPlayerSpawn(playerid)
{
     SetPlayerFightingStyle(player, PlayerInfo[playerid][pFightingStyle]);
     return 1;
}
• RADOVI •

Ne moze sve stati hoho



• FACEBOOK •

Klikni me !



Kazu da vreme sve leci, a vremenom samo se stvari zaborave