Vip Bug

Započeo Simec, Maj 31, 2020, 14:31:37 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Problem(error/warning): Kad nekome setam Vipa, ne upisuje u account, jedan skripter mi je rekao da je kod dobar i sve, ali idalje ne upisuje u igracev account, pa ako neko moze da pomogne...
Dio skripte: [pawn]CMD:makevip(playerid, params[])
{
   if(UlogovanIgrac[playerid] == 0) return SEM(playerid, "Nisi ulogovan!");
   if(IsPlayerConnected(playerid))
   {
      new id, lvl;
      if(IsPlayerAdmin(playerid) || PI[playerid][pAdmin] > 5)
      {
         if(sscanf(params, "ui", id, lvl)) return SKP(playerid, "/makevip (playerid) (level)");
         if(id == IPI) return SEM(playerid, "Pogresan ID!");
         if(lvl > 6 || lvl < 0) return SEM(playerid, "Ne moze vise od 6 ili manje od 0!");
         if(lvl > 0)
         {
            new string[128];
            new giveplayer[MPN];
            new sendername[MPN];
            GetPlayerName(id, giveplayer, sizeof(giveplayer));
            GetPlayerName(playerid, sendername, sizeof(sendername));
            new ygm, mgm, dgm;
            getdate(ygm,mgm,dgm);
            PI[id][pVIP] = lvl;
            PI[id][pVIPDan] = dgm;
            PI[id][pVIPMesec] = mgm;
            PI[id][pVIPGodina] = ygm;
            SetPlayerColor(id, 0x48FFA4FF);
            if(lvl == 4)
            {
                GivePlayerMoney(id, 150000);
            }
            else if(lvl == 5)
            {
                  GivePlayerMoney(id, 300000);
            }
            else if(lvl == 6)
            {
                GivePlayerMoney(id, 500000);
            }
            SaveAccount(id);
            printf("AdmCmd: %s je promovisan %s na level %d VIPa.", sendername, giveplayer, lvl);
            format(string, sizeof(string), ""COL_PR"[PR] {FFFFFF}Promovisani ste na VIPa level %d od strane %s.", lvl, sendername);
            SCM(id, -1, string);
            format(string, sizeof(string), ""COL_PR"[PR] {FFFFFF}Promovisali ste %s na VIPa lvl %d.", giveplayer,lvl);
            SCM(playerid, -1, string);
            format(string,sizeof(string), ""COL_YELLOW"[INFO]: Admin %s je postavio gradjaninu %s VIP level %d.", sendername, giveplayer, lvl);
            PAdm(ZUTA, string, 1);
            new str[128];
            format(str,128,"%s je dao gradjaninu %s VIP-a level %d",GetName(playerid),GetName(id),lvl);
            MakeLog(str);
         }
         else if(lvl < 1)
         {
              new string[128];
            new giveplayer[MPN];
            new sendername[MPN];
            GetPlayerName(id, giveplayer, sizeof(giveplayer));
            GetPlayerName(playerid, sendername, sizeof(sendername));
            PI[id][pVIP] = 0;
            printf("AdmCmd: %s je skinuo %s VIP-a.", sendername, giveplayer);
            format(string, sizeof(string), ""COL_PR"[PR] {FFFFFF}Skinut vam je VIP od strane %s.", sendername);
            SCM(id, -1, string);
            format(string, sizeof(string), ""COL_PR"[PR] {FFFFFF}Skinuli ste VIPa gradjaninu %s.", giveplayer);
            SCM(playerid, -1, string);
            format(string,sizeof(string), ""COL_YELLOW"[INFO]: Admin %s je skinuo gradjaninu %s VIP-a.", sendername, giveplayer);
            PAdm(ZUTA, string, 1);
            SetPlayerColor(id, 0xFFFFFFFF);
            PI[id][pVIPDan] = 0;
            PI[id][pVIPMesec] = 0;
            PI[id][pVIPGodina] = 0;
            SaveAccount(id);
            new str[128];
            format(str,128,"%s je skinuo gradjaninu %s VIPa",GetName(playerid),GetName(id));
            MakeLog(str);
         }
      }
   }
   return true;
}[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): /
Slika/video ingame problema(obavezno ako je ingame problem): /
Srbija RolePlay v1 - uskoro

Neko pomoc??
Srbija RolePlay v1 - uskoro

Posalji SaveAccount, i kako ucitavas Igracev Stats?

Brt ajde priv chat lakse mi nego da spamujem ovde
Srbija RolePlay v1 - uskoro

Buraz meni je ovako pa vidi hoce li tebi radit



CMD:makevip(playerid, params[])
{
   if(PlayerInfo[playerid][pAdmin] < 6) return Greska(playerid, "Nemate dozvolu da koristite ovu komandu!");
   if(AdminDuty[playerid] == 0 && HelperDuty[playerid] == 0 && PlayerInfo[playerid][pAdmin] < 6) return Greska(playerid, "Morate biti na duznosti da bi koristili ovu komandu!");
   new id, level, string[120];
   if(sscanf(params, "ud", id, level)) return Koristi(playerid, "/makevip [ID/Ime] [Level 0-4 (0 skidate vipa)]");
   if(id == IPI) return  Greska(playerid, "Pogrijesili ste ID!");
   if(level < 0 || level > 4) return Greska(playerid, "Vip Level ne moze biti ispod 0 i iznad 4!");
   if(PlayerInfo[id][pHelper] != 0) return Greska(playerid, "Igrac ne moze biti Vip i Helper u isto vrijeme!");
   if(PlayerInfo[id][pAdmin] != 0) return Greska(playerid, "Igrac ne moze biti Vip i Admin u isto vrijeme!");
   if(PlayerInfo[id][pPromoter] != 0) return Greska(playerid, "Igrac ne moze biti Vip i Promoter u isto vrijeme!");
    if(ImaDialogMijenjanjaLozinke[id] == 1) return Greska(playerid, "Ne mozete promovisati tog igraca jer on trenutno mijenja lozinku!");
   if(level == 0)
   {
      if(PlayerInfo[id][pVip] == 0) return Greska(playerid, "Taj igrac nije Vip!");
      PlayerInfo[id][pVip] = 0;
      PlayerInfo[id][pVipDani] = 0;
      PlayerInfo[id][pVipMjesec] = 0;
      PlayerInfo[id][pVipGodina] = 0;
      BojaIgraca(id);
       SacuvajKorisnike(id);
      format(string, sizeof(string), ""SVIJETLOSIVA"[VIP]: "BIJELA"Vlasnik %s Vam je skinuo Vipa!", GetName(playerid));
      SCM(id, -1, string);
      format(string, sizeof(string), ""AINFOZUTA"[OwnerInfo] "BIJELA"Vlasnik %s je skinuo Vipa igracu %s!", GetName(playerid), GetName(id));
      OwnerPoruka(-1, string);
      format(string, sizeof(string), "MAKEVIP | Admin: %s | Igrac: %s | VLVL: %d", GetName(playerid), GetName(id), level);
      UpisiLog(LOG_AHKOMANDE, string);
   }
   else
   {
      if(PlayerInfo[id][pVip] != 0) return Greska(playerid, "Taj igrac je vec Vip!");
      new gv, mv, dv;
      getdate(gv,mv,dv);
      PlayerInfo[id][pVip] = level;
      PlayerInfo[id][pVipDani] = dv;
      PlayerInfo[id][pVipMjesec] = mv;
      PlayerInfo[id][pVipGodina] = gv;
      if(level == 3) { F_NovacPlus(id, 30000); F_SetPlayerArmour(id, 50.0); }
      if(level == 4)
      {
         if(PlayerInfo[id][pDBPaket] == 0) { PlayerInfo[id][pDBPaket] = 1; }
         F_NovacPlus(id, 50000); F_SetPlayerArmour(id, 99.0);
      }
      BojaIgraca(id);
      SacuvajKorisnike(id);
      format(string, sizeof(string), ""VIPBOJA"[VIP]: "BIJELA"Vlasnik %s Vam je postavio Vip Level %d. Cestitamo!", GetName(playerid), level);
      SCM(id, -1, string);
      format(string, sizeof(string), ""AINFOZUTA"[OwnerInfo] "BIJELA"Vlasnik %s je postavio Vip level %d Igracu %s!", GetName(playerid), level, GetName(id));
      OwnerPoruka(-1, string);
      SCM(id, -1, ""IGBOJA"[Info]  "BIJELA"Da vidite komande dostupne za Vipa kucajte /vh.");
      format(string, sizeof(string), "MAKEVIP | Admin: %s | Igrac: %s | VLVL: %d", GetName(playerid), GetName(id), level);
      UpisiLog(LOG_AHKOMANDE, string);
   }
   return 1;
}

ako ti ne budne radilo jbg

Citat: Destroyer_Skripter poslato Jun 03, 2020, 23:27:18 POSLE PODNE
Buraz meni je ovako pa vidi hoce li tebi radit



CMD:makevip(playerid, params[])
{
   if(PlayerInfo[playerid][pAdmin] < 6) return Greska(playerid, "Nemate dozvolu da koristite ovu komandu!");
   if(AdminDuty[playerid] == 0 && HelperDuty[playerid] == 0 && PlayerInfo[playerid][pAdmin] < 6) return Greska(playerid, "Morate biti na duznosti da bi koristili ovu komandu!");
   new id, level, string[120];
   if(sscanf(params, "ud", id, level)) return Koristi(playerid, "/makevip [ID/Ime] [Level 0-4 (0 skidate vipa)]");
   if(id == IPI) return  Greska(playerid, "Pogrijesili ste ID!");
   if(level < 0 || level > 4) return Greska(playerid, "Vip Level ne moze biti ispod 0 i iznad 4!");
   if(PlayerInfo[id][pHelper] != 0) return Greska(playerid, "Igrac ne moze biti Vip i Helper u isto vrijeme!");
   if(PlayerInfo[id][pAdmin] != 0) return Greska(playerid, "Igrac ne moze biti Vip i Admin u isto vrijeme!");
   if(PlayerInfo[id][pPromoter] != 0) return Greska(playerid, "Igrac ne moze biti Vip i Promoter u isto vrijeme!");
    if(ImaDialogMijenjanjaLozinke[id] == 1) return Greska(playerid, "Ne mozete promovisati tog igraca jer on trenutno mijenja lozinku!");
   if(level == 0)
   {
      if(PlayerInfo[id][pVip] == 0) return Greska(playerid, "Taj igrac nije Vip!");
      PlayerInfo[id][pVip] = 0;
      PlayerInfo[id][pVipDani] = 0;
      PlayerInfo[id][pVipMjesec] = 0;
      PlayerInfo[id][pVipGodina] = 0;
      BojaIgraca(id);
       SacuvajKorisnike(id);
      format(string, sizeof(string), ""SVIJETLOSIVA"[VIP]: "BIJELA"Vlasnik %s Vam je skinuo Vipa!", GetName(playerid));
      SCM(id, -1, string);
      format(string, sizeof(string), ""AINFOZUTA"[OwnerInfo] "BIJELA"Vlasnik %s je skinuo Vipa igracu %s!", GetName(playerid), GetName(id));
      OwnerPoruka(-1, string);
      format(string, sizeof(string), "MAKEVIP | Admin: %s | Igrac: %s | VLVL: %d", GetName(playerid), GetName(id), level);
      UpisiLog(LOG_AHKOMANDE, string);
   }
   else
   {
      if(PlayerInfo[id][pVip] != 0) return Greska(playerid, "Taj igrac je vec Vip!");
      new gv, mv, dv;
      getdate(gv,mv,dv);
      PlayerInfo[id][pVip] = level;
      PlayerInfo[id][pVipDani] = dv;
      PlayerInfo[id][pVipMjesec] = mv;
      PlayerInfo[id][pVipGodina] = gv;
      if(level == 3) { F_NovacPlus(id, 30000); F_SetPlayerArmour(id, 50.0); }
      if(level == 4)
      {
         if(PlayerInfo[id][pDBPaket] == 0) { PlayerInfo[id][pDBPaket] = 1; }
         F_NovacPlus(id, 50000); F_SetPlayerArmour(id, 99.0);
      }
      BojaIgraca(id);
      SacuvajKorisnike(id);
      format(string, sizeof(string), ""VIPBOJA"[VIP]: "BIJELA"Vlasnik %s Vam je postavio Vip Level %d. Cestitamo!", GetName(playerid), level);
      SCM(id, -1, string);
      format(string, sizeof(string), ""AINFOZUTA"[OwnerInfo] "BIJELA"Vlasnik %s je postavio Vip level %d Igracu %s!", GetName(playerid), level, GetName(id));
      OwnerPoruka(-1, string);
      SCM(id, -1, ""IGBOJA"[Info]  "BIJELA"Da vidite komande dostupne za Vipa kucajte /vh.");
      format(string, sizeof(string), "MAKEVIP | Admin: %s | Igrac: %s | VLVL: %d", GetName(playerid), GetName(id), level);
      UpisiLog(LOG_AHKOMANDE, string);
   }
   return 1;
}

ako ti ne budne radilo jbg

Zadrži brate moj tvoje komande i znanje za tebe i ne blamiraj se više
My tutorials: PawnPlus MySQL, y_colours

Citat: Simec poslato Maj 31, 2020, 18:16:54 POSLE PODNE
Brt ajde priv chat lakse mi nego da spamujem ovde

Slobodno spamuj, ne smije ti niko nista :)

Posalji nam
SaveAccount(id);
ja sam pregledao kod za dodjeljivanje VIP-a, sve mi se cini uredu.

Evo sekunda
Srbija RolePlay v1 - uskoro

SaveAccount
[pawn]// ========================================================================== //
stock SaveAccount(playerid)
{
   if( IsPlayerConnected( playerid ))
   {
      if( UlogovanIgrac[ playerid ] == 1 )
      {
          new INI:File = INI_Open(UserPath(playerid));
          INI_SetTag(File,"Informacije" );
            INI_WriteInt( File, "Cash", PI[ playerid ][ pCash ]);
            INI_WriteInt( File, "Admin",PI[ playerid ][ pAdmin ]);
            INI_WriteInt( File, "Level",PI[ playerid ][ pLevel ]);
            INI_WriteInt( File, "Skin",PI[ playerid ][ pSkin ]);
            INI_WriteInt( File, "Reg",PI[ playerid ][ pReg ]);
          INI_WriteInt( File, "Member",PI[ playerid ][ pMember ]);
            INI_WriteInt( File, "Leader",PI[ playerid ][ pLeader  ]);
            INI_WriteInt( File, "Godine",PI[ playerid ][ pGodine ]);
            INI_WriteInt( File, "Pol",PI[ playerid ][ pPol ]);
            INI_WriteString(File,"Mail",PI[ playerid ][ pMail ]);
            INI_WriteInt( File, "GameMaster",PI[ playerid ][ pGameMaster ]);
            INI_WriteInt( File, "Exp",PI[ playerid ][ pExp ]);
            INI_WriteInt( File, "Plata",PI[ playerid ][ pPlata ]);
          INI_WriteInt( File, "Account",PI[ playerid ][ pAccount ]);
            INI_WriteInt( File, "Sati",PI[ playerid ][ pSati ]);
            INI_WriteInt( File, "Otkaz",PI[ playerid ][ pOtkaz ]);
         INI_WriteInt( File, "PlataPGMn",PI[ playerid ][ pPlataPGMn ]);
         INI_WriteInt( File, "KljucKuce",PI[ playerid ][ pKljucKuce ]);
         INI_WriteInt( File, "KljucImanja",PI[ playerid ][ pKljucImanja ]);
          INI_WriteInt( File, "KljucStana",PI[ playerid ][ pKljucStana ]);
          INI_WriteInt( File, "KljucFirme",PI[ playerid ][ pKljucFirme ]);
         INI_WriteInt( File, "Jailed",PI[ playerid ][ pJailed ]);
         INI_WriteInt( File, "JailTime",PI[ playerid ][ pJailTime ]);
         INI_WriteInt( File, "BorbeniStil",PI[ playerid ][ pBorbeniStil ]);
         INI_WriteInt( File, "GunDozvola",PI[ playerid ][ pGunDozvola ]);
         INI_WriteInt( File, "Cigare",PI[ playerid ][ pCigare ]);
         INI_WriteInt( File, "Upaljac",PI[ playerid ][ pUpaljac ]);
         INI_WriteInt( File, "Kanap",PI[ playerid ][ pKanap ]);
         INI_WriteInt( File, "Naocare",PI[ playerid ][ pNaocare ]);
         INI_WriteInt( File, "KolaDoz",PI[ playerid ][ pKolaDoz ]);
         INI_WriteInt( File, "FlyDoz",PI[ playerid ][ pFlyDoz ]);
         INI_WriteInt( File, "BrodDoz",PI[ playerid ][ pBrodDoz ]);
         INI_WriteInt( File, "Zlocin",PI[ playerid ][ pZlocin ]);
         INI_WriteInt( File, "Marama",PI[ playerid ][ pMarama ]);
         INI_WriteInt( File, "Sat",PI[ playerid ][ pSat ]);
         INI_WriteInt( File, "Kacket",PI[ playerid ][ pKacket ]);
         INI_WriteInt( File, "LottoNr1",PI[ playerid ][ pLottoNr1 ]);
         INI_WriteInt( File, "LottoNr2",PI[ playerid ][ pLottoNr2 ]);
         INI_WriteInt( File, "LottoNr3",PI[ playerid ][ pLottoNr3 ]);
         INI_WriteInt( File, "LottoNr4",PI[ playerid ][ pLottoNr4 ]);
         INI_WriteInt( File, "LottoNr5",PI[ playerid ][ pLottoNr5 ]);
         INI_WriteInt( File, "LottoNr6",PI[ playerid ][ pLottoNr6 ]);
         INI_WriteInt( File, "LottoNr7",PI[ playerid ][ pLottoNr7 ]);
            INI_WriteInt( File, "Kazna",PI[ playerid ][ pKazna ]);
            INI_WriteInt( File, "Pasos",PI[ playerid ][ pPasos ]);
            INI_WriteInt( File, "Imenik",PI[ playerid ][ pImenik ]);
            INI_WriteInt( File, "Mobilni",PI[ playerid ][ pMobilni ]);
            INI_WriteInt( File, "MobKredit",PI[ playerid ][ pMobKredit ]);
            INI_WriteInt( File, "Kills",PI[ playerid ][ pKills ]);
            INI_WriteInt( File, "Deaths",PI[ playerid ][ pDeaths ]);
            INI_WriteInt( File, "GM",PI[ playerid ][ pVIP ]);
            INI_WriteInt( File, "Job",PI[ playerid ][ pJob  ]);
            INI_WriteInt( File, "PinKod",PI[ playerid ][ pPinKod ]);
            INI_WriteInt( File, "Drugs",PI[ playerid ][ pDrugs ]);
            INI_WriteInt( File, "Vozilo1",PI[ playerid ][ pVozilo1 ]);
            INI_WriteInt( File, "Vozilo2",PI[ playerid ][ pVozilo2 ]);
          INI_WriteInt( File, "Vozilo3",PI[ playerid ][ pVozilo3 ]);
          INI_WriteInt( File, "GKartica",PI[ playerid ][ pGKartica ]);
          INI_WriteInt( File, "SpawnChange",PI[ playerid ][ pSpawnChange ]);
          INI_WriteInt( File, "KljucGaraze",PI[ playerid ][ pKljucGaraze ]);
          INI_WriteInt( File, "KljucTrafike",PI[ playerid ][ pKljucTrafike ]);
          INI_WriteInt( File, "Zlato",PI[ playerid ][ pZlato ]);
          INI_WriteInt( File, "Alat",PI[ playerid ][ pAlat ]);
          INI_WriteInt( File, "Poklon",PI[ playerid ][ pPoklon ]);
          INI_WriteInt( File, "Lek",PI[ playerid ][ pLek ]);
          INI_WriteInt( File, "Radio",PI[ playerid ][ pRadio ]);
          INI_WriteInt( File, "Bolest",PI[ playerid ][ pBolest ]);
          INI_WriteInt( File, "Code",PI[ playerid ][ pCode ]);
          INI_WriteInt( File, "KazinoNr",PI[ playerid ][ pKazinoNr ]);
          INI_WriteInt( File, "ZadnjiY",PI[ playerid ][ pZadnjiY ]);
         INI_WriteInt( File, "ZadnjiM",PI[ playerid ][ pZadnjiM ]);
         INI_WriteInt( File, "ZadnjiD",PI[ playerid ][ pZadnjiD ]);
         INI_WriteInt( File, "Arrested",PI[ playerid ][ pArrested ]);
         INI_WriteInt( File, "Rank",PI[ playerid ][ pRank ]);
         INI_WriteInt( File, "Gorivo",PI[ playerid ][ pGorivo ]);
         INI_WriteInt( File, "InvWeapon",PI[ playerid ][ pInvWeapon ]);
         INI_WriteInt( File, "InvAmmo",PI[ playerid ][ pInvAmmo ]);
         INI_WriteInt( File, "Mats",PI[ playerid ][ pMats ]);
         INI_WriteInt( File, "Warns",PI[ playerid ][ pWarns ]);
         INI_WriteInt( File, "Kosa",PI[ playerid ][ pKosa ]);
         INI_WriteInt( File, "Snaga",PI[ playerid ][ pSnaga ]);
         INI_WriteInt( File, "Inteligencija",PI[ playerid ][ pInteligencija ]);
         INI_WriteInt( File, "Spretnost",PI[ playerid ][ pSpretnost ]);
         INI_WriteInt( File, "GPS",PI[ playerid ][ pGPS ]);
         INI_WriteInt( File, "Torba",PI[ playerid ][ pTorba ]);
         INI_WriteInt( File, "Racunar",PI[ playerid ][ pRacunar ]);
         INI_WriteInt( File, "Hleb",PI[ playerid ][ pHleb ]);
         INI_WriteInt( File, "Pizza",PI[ playerid ][ pPizza ]);
         INI_WriteInt( File, "Kola",PI[ playerid ][ pKola ]);
         INI_WriteInt( File, "Mleko",PI[ playerid ][ pMleko ]);
         INI_WriteInt( File, "Sendvic",PI[ playerid ][ pSendvic ]);
         INI_WriteInt( File, "Promoter",PI[ playerid ][ pPromoter ]);
         INI_WriteInt( File, "BankKredit",PI[ playerid ][ pBankKredit ]);
         INI_WriteInt( File, "Ipovana",PI[ playerid ][ pIpovana ]);
         INI_WriteInt( File, "Wanted",PI[ playerid ][ pWanted ]);
         INI_WriteInt( File, "LTA",PI[ playerid ][ pLTA ]);
         INI_WriteInt( File, "Suspend",PI[ playerid ][ pSuspend ]);
         INI_WriteInt( File, "IJob",PI[ playerid ][ pIJob ]);
         INI_WriteInt( File, "Kaciga",PI[ playerid ][ pKaciga ]);
         INI_WriteInt( File, "MemberEx",PI[ playerid ][ pMemberEx ]);
         INI_WriteInt( File, "SkinEx",PI[ playerid ][ pSkinEx ]);
         INI_WriteInt( File, "LeaderEx",PI[ playerid ][ pLeaderEx ]);
         INI_WriteInt( File, "FZKills",PI[ playerid ][ pFZKills ]);
         INI_WriteInt( File, "FZDeaths",PI[ playerid ][ pFZDeaths ]);
         INI_WriteInt( File, "VIPDan",PI[ playerid ][ pVIPDan ]);
         INI_WriteInt( File, "VIPMesec",PI[ playerid ][ pVIPMesec ]);
         INI_WriteInt( File, "VIPGodina",PI[ playerid ][ pVIPGodina ]);
         INI_WriteInt( File, "Ogrlice",PI[ playerid ][ pOgrlice ]);
         INI_WriteInt( File, "Slike",PI[ playerid ][ pSlike ]);
         INI_WriteInt( File, "Mute",PI[ playerid ][ pMute ]);
         INI_WriteInt( File, "VMute",PI[ playerid ][ pVMute ]);
         INI_WriteInt( File, "Novcanik",PI[ playerid ][ pNovcanik ]);
         INI_WriteInt( File, "RPP",PI[ playerid ][ pRPP ]);
         INI_WriteInt( File, "Oglasnik",PI[ playerid ][ pOglasnik ]);
         INI_WriteInt( File, "Ribe",PI[ playerid ][ pRibe ]);
         INI_WriteInt( File, "Swat",PI[ playerid ][ pSwat ]);
         INI_WriteInt( File, "Kruska",PI[ playerid ][ pKruska ]);
         INI_WriteInt( File, "Jabuka",PI[ playerid ][ pJabuka ]);
         INI_WriteInt( File, "Sljiva",PI[ playerid ][ pSljiva ]);
         INI_WriteInt( File, "DrvoKruska",PI[ playerid ][ pDrvoKruska ]);
         INI_WriteInt( File, "DrvoJabuka",PI[ playerid ][ pDrvoJabuka ]);
         INI_WriteInt( File, "DrvoSljiva",PI[ playerid ][ pDrvoSljiva ]);
         INI_WriteInt( File, "KontejnerVreme",PI[ playerid ][ KontejnerVreme ]);
         INI_WriteInt( File, "GrebGr",PI[ playerid ][ pGrebGr ]);
         INI_WriteInt( File, "Klesta",PI[ playerid ][ pKlesta ]);
         INI_WriteInt( File, "Kartica",PI[ playerid ][ pKartica ]);
         INI_WriteInt( File, "Sraf",PI[ playerid ][ pSraf ]);
         INI_WriteFloat(File,"PosX",PI[ playerid ][ pPosX ]);
         INI_WriteFloat(File,"PosY",PI[ playerid ][ pPosY ]);
         INI_WriteFloat(File,"PosZ",PI[ playerid ][ pPosZ ]);
         INI_WriteFloat(File,"PosAngle",PI[ playerid ][ pPosAngle ]);
         INI_WriteInt( File, "PosVW",PI[ playerid ][ pPosVW ]);
         INI_WriteInt( File, "PosInt",PI[ playerid ][ pPosInt ]);
         INI_WriteInt( File, "PosUsao",PI[ playerid ][ pPosUsao ]);
         INI_WriteInt( File, "ASlot",PI[ playerid ][ pASlot ]);
         INI_WriteInt( File, "SSlot",PI[ playerid ][ pSSlot ]);
         INI_WriteInt( File, "Gun1",PI[ playerid ][ pGun1 ]);
         INI_WriteInt( File, "Gun2",PI[ playerid ][ pGun2 ]);
         INI_WriteInt( File, "Gun3",PI[ playerid ][ pGun3 ]);
         INI_WriteInt( File, "Gun4",PI[ playerid ][ pGun4 ]);
         INI_WriteInt( File, "Ammo1",PI[ playerid ][ pAmmo1 ]);
         INI_WriteInt( File, "Ammo2",PI[ playerid ][ pAmmo2 ]);
         INI_WriteInt( File, "Ammo3",PI[ playerid ][ pAmmo3 ]);
         INI_WriteInt( File, "Ammo4",PI[ playerid ][ pAmmo4 ]);
         INI_WriteInt( File, "Crash",PI[ playerid ][ pCrash ]);
         INI_WriteInt( File, "KljucVikendice",PI[ playerid ][ pKljucVikendice ]);
         INI_WriteInt( File, "Penzija",PI[ playerid ][ pPenzija ]);
         INI_WriteInt( File, "Married",PI[ playerid ][ pMarried ]);
         INI_WriteString(File,"MarriedTo",PI[ playerid ][ pMarriedTo ]);
         INI_WriteInt( File, "MSlot",PI[ playerid ][ pMSlot ]);
         INI_WriteInt( File, "Akcenat",PI[ playerid ][ pAkcenat ]);
         INI_WriteInt( File, "GM",PI[ playerid ][ pGM ]);
         INI_WriteInt( File, "GChat",PI[ playerid ][ pGChat ]);
         INI_WriteInt( File, "Zica",PI[ playerid ][ pZica ]);
         INI_WriteInt( File, "Ugovor",PI[ playerid ][ pUgovor ]);
         INI_WriteInt( File, "Sigurnosni",PI[ playerid ][ pSigurnosni ]);
         INI_WriteInt( File, "Kofer",PI[ playerid ][ pKofer ]);
         INI_WriteInt( File, "SkillATM",PI[ playerid ][ pSkillATM ]);
         INI_WriteInt( File, "SkillPilot",PI[ playerid ][ pSkillPilot ]);
         INI_WriteInt( File, "SkillKamiondzija",PI[ playerid ][ pSkillKamiondzija ]);
         INI_WriteInt( File, "Robbing",PI[ playerid ][ pRobbing ]);
         INI_WriteInt( File, "JackPot",PI[ playerid ][ pJackPot ]);
         INI_WriteInt( File, "KamionDoz",PI[ playerid ][ pKamionDoz ]);
         INI_WriteInt( File, "MotorDoz",PI[ playerid ][ pMotorDoz ]);
         INI_WriteInt( File, "FirmaUsao",PI[ playerid ][ pFirmaUsao ]);
         INI_WriteInt( File, "Gradonacelnik",PI[ playerid ][ pGradonacelnik ]);
         INI_WriteInt( File, "YouTuber",PI[ playerid ][ pYouTuber ]);
         INI_WriteInt( File, "SimecRank",PI[ playerid ][ pSimecRank ]);
            INI_WriteInt( File, "Security",PI[ playerid ][ pSecurity ]);
            INI_WriteInt( File, "Vozac",PI[ playerid ][ pVozac ]);
         INI_WriteInt( File, "DJ",PI[ playerid ][ pDJ ]);
         INI_WriteInt( File, "InvWeapon1",PI[ playerid ][ pInvWeapon1 ]);
         INI_WriteInt( File, "InvAmmo1",PI[ playerid ][ pInvAmmo1 ]);
         INI_WriteInt( File, "InvWeapon2",PI[ playerid ][ pInvWeapon2 ]);
         INI_WriteInt( File, "InvAmmo2",PI[ playerid ][ pInvAmmo2 ]);
         INI_WriteInt( File, "NY",PI[ playerid ][ pNY ]);
         INI_WriteInt( File, "SigurnosniNew",PI[ playerid ][ pSigurnosniNew ]);
         INI_WriteInt( File, "Injekcija",PI[ playerid ][ pInjekcija ]);
         INI_WriteInt( File, "Kokain",PI[ playerid ][ pKokain ]);
         INI_WriteInt( File, "Heroin",PI[ playerid ][ pHeroin ]);
         INI_WriteInt( File, "Weed",PI[ playerid ][ pWeed ]);
         INI_WriteInt( File, "Ectasy",PI[ playerid ][ pEctasy ]);
         INI_WriteInt( File, "KaznaWarn",PI[ playerid ][ pKaznaWarn ]);
         INI_WriteInt( File, "Crack",PI[ playerid ][ pCrack ]);
         INI_WriteInt( File, "WExists",PI[ playerid ][ pWExists ]);
           INI_WriteFloat(File,"WX",PI[ playerid ][ pWX ]);
           INI_WriteFloat(File,"WY",PI[ playerid ][ pWY ]);
           INI_WriteFloat(File,"WZ",PI[ playerid ][ pWZ ]);
           INI_WriteInt( File, "WVW",PI[ playerid ][ pWVW ]);
           INI_WriteInt( File, "WInt",PI[ playerid ][ pWInt ]);
           INI_WriteInt( File, "WValue",PI[ playerid ][ pWValue ]);
           INI_WriteInt( File, "WObject",PI[ playerid ][ pWObject ]);
           INI_WriteInt( File, "WTimer",PI[ playerid ][ pWTimer ]);
           INI_WriteInt( File, "WSeeds",PI[ playerid ][ pWSeeds ]);
         INI_WriteInt( File, "NajviseOnline",PI[ playerid ][ pNajviseOnline ]);
         INI_WriteInt( File, "Donator",PI[ playerid ][ pDonator ]);
         INI_WriteInt( File, "RChan",PI[ playerid ][ pRChan ]);
         INI_WriteInt( File, "NewRadio",PI[ playerid ][ pNewRadio ]);
         INI_WriteInt( File, "RAdmin",PI[ playerid ][ pRAdmin ]);
         INI_WriteInt( File, "Hangar",PI[ playerid ][ pHangar ]);
         INI_WriteInt( File, "Kaznjen",PI[ playerid ][ pKaznjen ]);
         INI_WriteInt( File, "TogPhone",PI[ playerid ][ pTogPhone ]);
         INI_WriteInt( File, "TogCD",PI[ playerid ][ pTogCD ]);
         INI_WriteInt( File, "MobVrsta",PI[ playerid ][ pMobVrsta ]);
         INI_WriteInt( File, "MP3",PI[ playerid ][ pMP3 ]);
         INI_WriteInt( File, "PP",PI[ playerid ][ pPP ]);
         INI_WriteInt( File, "TogWarns",PI[ playerid ][ pTogWarns ]);
         INI_WriteInt( File, "PitanjeID",PI[ playerid ][ pPitanjeID ]);
         INI_WriteString(File,"PitanjeText",PI[ playerid ][ pPitanjeText ]);
         INI_WriteInt( File, "Vozilo4",PI[ playerid ][ pVozilo4 ]);
         INI_WriteInt( File, "Slot4",PI[ playerid ][ pSlot4 ]);
         INI_WriteFloat(File,"CHP",PI[ playerid ][ pCHP ]);
         INI_WriteFloat(File,"CArmour",PI[ playerid ][ pCArmour ]);
         INI_WriteInt( File, "Drzava",PI[ playerid ][ pDrzava ]);
         INI_WriteInt( File, "Boje",PI[ playerid ][ pBoje ]);
          INI_Close(File);
       }
   }
    return true;
}[/pawn]

OcitajKorisnika
[pawn]_callback: OcitajKorisnika(playerid,name[],value[])
{
    INI_Int( "Password",PI[ playerid ][ pPassword ]);
    INI_Int( "Cash",PI[ playerid ][ pCash ]);
    INI_Int( "Admin",PI[ playerid ][ pAdmin ]);
    INI_Int( "Level",PI[ playerid ][ pLevel ]);
    INI_Int( "Skin",PI[ playerid ][ pSkin ]);
    INI_Int( "Reg",PI[ playerid ][ pReg ]);
    INI_Int( "Member",PI[ playerid ][ pMember ]);
    INI_Int( "Leader",PI[ playerid ][ pLeader  ]);
    INI_Int( "Godine",PI[ playerid ][ pGodine ]);
    INI_Int( "Pol",PI[ playerid ][ pPol ]);
    INI_String("Mail",PI[ playerid ][ pMail],64);
    INI_Int( "GameMaster",PI[ playerid ][ pGameMaster ]);
    INI_Int( "Exp",PI[ playerid ][ pExp ]);
   INI_Int( "Plata",PI[ playerid ][ pPlata ]);
   INI_Int( "Account",PI[ playerid ][ pAccount ]);
   INI_Int( "Sati",PI[ playerid ][ pSati ]);
   INI_Int( "Otkaz",PI[ playerid ][ pOtkaz ]);
   INI_Int( "PlataPGMn",PI[ playerid ][ pPlataPGMn ]);
   INI_Int( "KljucKuce",PI[ playerid ][ pKljucKuce ]);
   INI_Int( "KljucImanja",PI[ playerid ][ pKljucImanja ]);
   INI_Int( "KljucStana",PI[ playerid ][ pKljucStana ]);
   INI_Int( "KljucFirme",PI[ playerid ][ pKljucFirme ]);
   INI_Int( "Jailed",PI[ playerid ][ pJailed ]);
   INI_Int( "JailTime",PI[ playerid ][ pJailTime ]);
   INI_Int( "BorbeniStil",PI[ playerid ][ pBorbeniStil ]);
   INI_Int( "GunDozvola",PI[ playerid ][ pGunDozvola ]);
   INI_Int( "Cigare",PI[ playerid ][ pCigare ]);
   INI_Int( "Upaljac",PI[ playerid ][ pUpaljac ]);
   INI_Int( "Kanap",PI[ playerid ][ pKanap ]);
   INI_Int( "Naocare",PI[ playerid ][ pNaocare ]);
   INI_Int( "KolaDoz",PI[ playerid ][ pKolaDoz ]);
   INI_Int( "FlyDoz",PI[ playerid ][ pFlyDoz ]);
   INI_Int( "BrodDoz",PI[ playerid ][ pBrodDoz ]);
   INI_Int( "Zlocin",PI[ playerid ][ pZlocin ]);
   INI_Int( "Marama",PI[ playerid ][ pMarama ]);
   INI_Int( "Sat",PI[ playerid ][ pSat ]);
   INI_Int( "Kacket",PI[ playerid ][ pKacket ]);
   INI_Int( "LottoNr1",PI[ playerid ][ pLottoNr1 ]);
   INI_Int( "LottoNr2",PI[ playerid ][ pLottoNr2 ]);
   INI_Int( "LottoNr3",PI[ playerid ][ pLottoNr3 ]);
   INI_Int( "LottoNr4",PI[ playerid ][ pLottoNr4 ]);
   INI_Int( "LottoNr5",PI[ playerid ][ pLottoNr5 ]);
   INI_Int( "LottoNr6",PI[ playerid ][ pLottoNr6 ]);
   INI_Int( "LottoNr7",PI[ playerid ][ pLottoNr7 ]);
   INI_Int( "Kazna",PI[ playerid ][ pKazna ]);
   INI_Int( "Pasos",PI[ playerid ][ pPasos ]);
   INI_Int( "Imenik",PI[ playerid ][ pImenik ]);
   INI_Int( "Mobilni",PI[ playerid ][ pMobilni ]);
   INI_Int( "MobKredit",PI[ playerid ][ pMobKredit ]);
   INI_Int( "Kills",PI[ playerid ][ pKills ]);
   INI_Int( "Deaths",PI[ playerid ][ pDeaths ]);
   INI_Int( "GM",PI[ playerid ][ pVIP ]);
   INI_Int( "Job",PI[ playerid ][ pJob  ]);
   INI_Int( "PinKod",PI[ playerid ][ pPinKod ]);
   INI_Int( "Drugs",PI[ playerid ][ pDrugs ]);
   INI_Int( "Vozilo1",PI[ playerid ][ pVozilo1 ]);
   INI_Int( "Vozilo2",PI[ playerid ][ pVozilo2 ]);
   INI_Int( "Vozilo3",PI[ playerid ][ pVozilo3 ]);
   INI_Int( "GKartica",PI[ playerid ][ pGKartica ]);
   INI_Int( "SpawnChange",PI[ playerid ][ pSpawnChange ]);
   INI_Int( "KljucGaraze",PI[ playerid ][ pKljucGaraze ]);
    INI_Int( "KljucTrafike",PI[ playerid ][ pKljucTrafike ]);
    INI_Int( "Zlato",PI[ playerid ][ pZlato ]);
    INI_Int( "Alat",PI[ playerid ][ pAlat ]);
    INI_Int( "Poklon",PI[ playerid ][ pPoklon ]);
    INI_Int( "Lek",PI[ playerid ][ pLek ]);
    INI_Int( "Radio",PI[ playerid ][ pRadio ]);
    INI_Int( "Bolest",PI[ playerid ][ pBolest ]);
    INI_Int( "Code",PI[ playerid ][ pCode ]);
    INI_Int( "KazinoNr",PI[ playerid ][ pKazinoNr ]);
    INI_Int( "ZadnjiY",PI[ playerid ][ pZadnjiY ]);
   INI_Int( "ZadnjiM",PI[ playerid ][ pZadnjiM ]);
   INI_Int( "ZadnjiD",PI[ playerid ][ pZadnjiD ]);
   INI_Int( "Arrested",PI[ playerid ][ pArrested ]);
   INI_Int( "Rank",PI[ playerid ][ pRank ]);
   INI_Int( "Gorivo",PI[ playerid ][ pGorivo ]);
   INI_Int( "InvWeapon",PI[ playerid ][ pInvWeapon ]);
   INI_Int( "InvAmmo",PI[ playerid ][ pInvAmmo ]);
   INI_Int( "Mats",PI[ playerid ][ pMats ]);
   INI_Int( "Warns",PI[ playerid ][ pWarns ]);
   INI_Int( "Kosa",PI[ playerid ][ pKosa ]);
   INI_Int( "Snaga",PI[ playerid ][ pSnaga ]);
   INI_Int( "Inteligencija",PI[ playerid ][ pInteligencija ]);
   INI_Int( "Spretnost",PI[ playerid ][ pSpretnost ]);
   INI_Int( "GPS",PI[ playerid ][ pGPS ]);
   INI_Int( "Torba",PI[ playerid ][ pTorba ]);
   INI_Int( "Racunar",PI[ playerid ][ pRacunar ]);
   INI_Int( "Hleb",PI[ playerid ][ pHleb ]);
   INI_Int( "Pizza",PI[ playerid ][ pPizza ]);
   INI_Int( "Kola",PI[ playerid ][ pKola ]);
   INI_Int( "Mleko",PI[ playerid ][ pMleko ]);
   INI_Int( "Sendvic",PI[ playerid ][ pSendvic ]);
   INI_Int( "Promoter",PI[ playerid ][ pPromoter ]);
   INI_Int( "BankKredit",PI[ playerid ][ pBankKredit ]);
   INI_Int( "Ipovana",PI[ playerid ][ pIpovana ]);
   INI_Int( "Wanted",PI[ playerid ][ pWanted ]);
   INI_Int( "LTA",PI[ playerid ][ pLTA ]);
   INI_Int( "Suspend",PI[ playerid ][ pSuspend ]);
   INI_Int( "IJob",PI[ playerid ][ pIJob ]);
   INI_Int( "Kaciga",PI[ playerid ][ pKaciga ]);
   INI_Int( "MemberEx",PI[ playerid ][ pMemberEx ]);
   INI_Int( "SkinEx",PI[ playerid ][ pSkinEx ]);
   INI_Int( "LeaderEx",PI[ playerid ][ pLeaderEx ]);
   INI_Int( "FZKills",PI[ playerid ][ pFZKills ]);
   INI_Int( "FZDeaths",PI[ playerid ][ pFZDeaths ]);
   INI_Int( "VIPDan",PI[ playerid ][ pVIPDan ]);
   INI_Int( "VIPMesec",PI[ playerid ][ pVIPMesec ]);
   INI_Int( "VIPGodina",PI[ playerid ][ pVIPGodina ]);
   INI_Int( "Ogrlice",PI[ playerid ][ pOgrlice ]);
   INI_Int( "Slike",PI[ playerid ][ pSlike ]);
   INI_Int( "Mute",PI[ playerid ][ pMute ]);
   INI_Int( "VMute",PI[ playerid ][ pVMute ]);
   INI_Int( "Novcanik",PI[ playerid ][ pNovcanik ]);
   INI_Int( "RPP",PI[ playerid ][ pRPP ]);
   INI_Int( "Oglasnik",PI[ playerid ][ pOglasnik ]);
   INI_Int( "Ribe",PI[ playerid ][ pRibe ]);
   INI_Int( "Swat",PI[ playerid ][ pSwat ]);
   INI_Int( "Kruska",PI[ playerid ][ pKruska ]);
   INI_Int( "Jabuka",PI[ playerid ][ pJabuka ]);
   INI_Int( "Sljiva",PI[ playerid ][ pSljiva ]);
   INI_Int( "DrvoKruska",PI[ playerid ][ pDrvoKruska ]);
   INI_Int( "DrvoJabuka",PI[ playerid ][ pDrvoJabuka ]);
   INI_Int( "DrvoSljiva",PI[ playerid ][ pDrvoSljiva ]);
   INI_Int( "KontejnerVreme",PI[ playerid ][ KontejnerVreme ]);
   INI_Int( "GrebGr",PI[ playerid ][ pGrebGr ]);
   INI_Int( "Klesta",PI[ playerid ][ pKlesta ]);
   INI_Int( "Kartica",PI[ playerid ][ pKartica ]);
   INI_Int( "Sraf",PI[ playerid ][ pSraf ]);
   INI_Float("PosX",PI[ playerid ][ pPosX ]);
   INI_Float("PosY",PI[ playerid ][ pPosY ]);
   INI_Float("PosZ",PI[ playerid ][ pPosZ ]);
   INI_Float("PosAngle",PI[ playerid ][ pPosAngle ]);
   INI_Int( "PosVW",PI[ playerid ][ pPosVW ]);
   INI_Int( "PosInt",PI[ playerid ][ pPosInt ]);
   INI_Int( "PosUsao",PI[ playerid ][ pPosUsao ]);
   INI_Int( "ASlot",PI[ playerid ][ pASlot ]);
   INI_Int( "SSlot",PI[ playerid ][ pSSlot ]);
   INI_Int( "Gun1",PI[ playerid ][ pGun1 ]);
   INI_Int( "Gun2",PI[ playerid ][ pGun2 ]);
   INI_Int( "Gun3",PI[ playerid ][ pGun3 ]);
   INI_Int( "Gun4",PI[ playerid ][ pGun4 ]);
   INI_Int( "Ammo1",PI[ playerid ][ pAmmo1 ]);
   INI_Int( "Ammo2",PI[ playerid ][ pAmmo2 ]);
   INI_Int( "Ammo3",PI[ playerid ][ pAmmo3 ]);
   INI_Int( "Ammo4",PI[ playerid ][ pAmmo4 ]);
   INI_Int( "Crash",PI[ playerid ][ pCrash ]);
   INI_Int( "KljucVikendice",PI[ playerid ][ pKljucVikendice ]);
   INI_Int( "Penzija",PI[ playerid ][ pPenzija ]);
   INI_Int( "Married",PI[ playerid ][ pMarried ]);
   INI_String("MarriedTo",PI[ playerid ][ pMarriedTo],64);
   INI_Int( "MSlot",PI[ playerid ][ pMSlot ]);
   INI_Int( "Akcenat",PI[ playerid ][ pAkcenat ]);
   INI_Int( "GM",PI[ playerid ][ pGM ]);
   INI_Int( "GChat",PI[ playerid ][ pGChat ]);
   INI_Int( "Zica",PI[ playerid ][ pZica ]);
   INI_Int( "Ugovor",PI[ playerid ][ pUgovor ]);
   INI_Int( "Sigurnosni",PI[ playerid ][ pSigurnosni ]);
   INI_Int( "Kofer",PI[ playerid ][ pKofer ]);
   INI_Int( "SkillATM",PI[ playerid ][ pSkillATM ]);
   INI_Int( "SkillPilot",PI[ playerid ][ pSkillPilot ]);
   INI_Int( "SkillKamiondzija",PI[ playerid ][ pSkillKamiondzija ]);
   INI_Int( "Robbing",PI[ playerid ][ pRobbing ]);
   INI_Int( "JackPot",PI[ playerid ][ pJackPot ]);
   INI_Int( "KamionDoz",PI[ playerid ][ pKamionDoz ]);
   INI_Int( "MotorDoz",PI[ playerid ][ pMotorDoz ]);
   INI_Int( "FirmaUsao",PI[ playerid ][ pFirmaUsao ]);
   INI_Int( "YouTuber",PI[ playerid ][ pYouTuber ]);
   INI_Int( "SimecRank",PI[ playerid ][ pSimecRank ]);
   INI_Int( "Security",PI[ playerid ][ pSecurity ]);
   INI_Int( "Vozac",PI[ playerid ][ pVozac ]);
   INI_Int( "Gradonacelnik",PI[ playerid ][ pGradonacelnik ]);
   INI_Int( "DJ",PI[ playerid ][ pDJ ]);
   INI_Int( "InvWeapon1",PI[ playerid ][ pInvWeapon1 ]);
   INI_Int( "InvAmmo1",PI[ playerid ][ pInvAmmo1 ]);
   INI_Int( "InvWeapon2",PI[ playerid ][ pInvWeapon2 ]);
   INI_Int( "InvAmmo2",PI[ playerid ][ pInvAmmo2 ]);
   INI_Int( "NY",PI[ playerid ][ pNY ]);
   INI_Int( "SigurnosniNew",PI[ playerid ][ pSigurnosniNew ]);
   INI_Int( "Injekcija",PI[ playerid ][ pInjekcija ]);
   INI_Int( "Kokain",PI[ playerid ][ pKokain ]);
   INI_Int( "Heroin",PI[ playerid ][ pHeroin ]);
   INI_Int( "Weed",PI[ playerid ][ pWeed ]);
   INI_Int( "Ectasy",PI[ playerid ][ pEctasy ]);
   INI_Int( "KaznaWarn",PI[ playerid ][ pKaznaWarn ]);
   INI_Int( "Crack",PI[ playerid ][ pCrack ]);
   INI_Int( "WExists",PI[ playerid ][ pWExists ]);
   INI_Float( "WX",PI[ playerid ][ pWX ]);
     INI_Float( "WY",PI[ playerid ][ pWY ]);
      INI_Float( "WZ",PI[ playerid ][ pWZ ]);
    INI_Int( "WVW",PI[ playerid ][ pWVW ]);
    INI_Int( "WInt",PI[ playerid ][ pWInt ]);
    INI_Int( "WValue",PI[ playerid ][ pWValue ]);
    INI_Int( "WObject",PI[ playerid ][ pWObject ]);
    INI_Int( "WTimer",PI[ playerid ][ pWTimer ]);
    INI_Int( "WSeeds",PI[ playerid ][ pWSeeds ]);
   INI_Int( "NajviseOnline",PI[ playerid ][ pNajviseOnline ]);
   INI_Int( "Donator",PI[ playerid ][ pDonator ]);
   INI_Int( "RChan",PI[ playerid ][ pRChan ]);
   INI_Int( "NewRadio",PI[ playerid ][ pNewRadio ]);
   INI_Int( "RAdmin",PI[ playerid ][ pRAdmin ]);
   INI_Int( "Hangar",PI[ playerid ][ pHangar ]);
   INI_Int( "Kaznjen",PI[ playerid ][ pKaznjen ]);
   INI_Int( "TogPhone",PI[ playerid ][ pTogPhone ]);
   INI_Int( "TogCD",PI[ playerid ][ pTogCD ]);
   INI_Int( "MobVrsta",PI[ playerid ][ pMobVrsta ]);
   INI_Int( "MP3",PI[ playerid ][ pMP3 ]);
   INI_Int( "PP",PI[ playerid ][ pPP ]);
   INI_Int( "TogWarns",PI[ playerid ][ pTogWarns ]);
   INI_Int( "PitanjeID",PI[ playerid ][ pPitanjeID ]);
   INI_String("PitanjeText",PI[ playerid ][ pPitanjeText],128);
   INI_Int( "Vozilo4",PI[ playerid ][ pVozilo4 ]);
   INI_Int( "Slot4",PI[ playerid ][ pSlot4 ]);
   INI_Float("CHP",PI[ playerid ][ pCHP ]);
   INI_Float("CArmour",PI[ playerid ][ pCArmour ]);
   INI_Int( "Drzava",PI[ playerid ][ pDrzava ]);
   INI_Int( "Boje",PI[ playerid ][ pBoje ]);
    return true;
}[/pawn]
Srbija RolePlay v1 - uskoro

pitanje, kada postavis nekom vipa, da li si probao da li on postaje vip, mislim, da li može da koristi komande VIP-a

I kada se  reloguje, tada ga gubi, ako sam dobro shvatio ?

da da, ja njemu setam vipa, on ima vipa i cim izadje nestane mu i u scriptfiles se ne upisuje u njegov acc ne ostane upisan vip najbolje ti dam anydesk da vidis sta te interesuje i da li mozes da resis ako imas vremena
Srbija RolePlay v1 - uskoro

Citat: Simec poslato Jun 04, 2020, 10:57:46 PRE PODNE
da da, ja njemu setam vipa, on ima vipa i cim izadje nestane mu i u scriptfiles se ne upisuje u njegov acc ne ostane upisan vip najbolje ti dam anydesk da vidis sta te interesuje i da li mozes da resis ako imas vremena
Trenutno sam na poslu, jedino ti mogu ovako pomoć jer ne znam kada sam veceras kuci...

Nego slusaj, kada se pokusa logovat, dali mu ispise kao da je istekao vip ?

Moze svasta bit haha, ne znam kako ide ovo sa get time, kada se loguje da li provjerava to, šta imaš pod
UserPath(playerid)
kako si definisao PATH

Možda ti ne učitava korisnika sa istom mjesta gdje ga sejvaš...

[pawn]// ========================================================================== //
stock SacuvajNovePromene(playerid)
{
   if( IsPlayerConnected( playerid ))
   {
      if( UlogovanIgrac[ playerid ] == 1 )
      {
          new INI:File = INI_Open(UserPath(playerid));
          INI_SetTag(File,"Informacije" );
          INI_WriteInt( File, "Password", PI[ playerid ][ pPassword ]);
            INI_WriteInt( File, "Cash",PI[ playerid ][ pCash ]);
            INI_WriteInt( File, "Admin",PI[ playerid ][ pAdmin ]);
            INI_WriteInt( File, "Level",PI[ playerid ][ pLevel ]);
            INI_WriteInt( File, "Skin",PI[ playerid ][ pSkin ]);
            INI_WriteInt( File, "Reg",PI[ playerid ][ pReg ]);
          INI_WriteInt( File, "Member",PI[ playerid ][ pMember ]);
            INI_WriteInt( File, "Leader",PI[ playerid ][ pLeader  ]);
            INI_WriteInt( File, "Godine",PI[ playerid ][ pGodine ]);
            INI_WriteInt( File, "Pol",PI[ playerid ][ pPol ]);
            INI_WriteString(File,"Mail",PI[ playerid ][ pMail ]);
            INI_WriteInt( File, "GameMaster",PI[ playerid ][ pGameMaster ]);
            INI_WriteInt( File, "Exp",PI[ playerid ][ pExp ]);
            INI_WriteInt( File, "Plata",PI[ playerid ][ pPlata ]);
          INI_WriteInt( File, "Account",PI[ playerid ][ pAccount ]);
            INI_WriteInt( File, "Sati",PI[ playerid ][ pSati ]);
            INI_WriteInt( File, "Otkaz",PI[ playerid ][ pOtkaz ]);
         INI_WriteInt( File, "PlataPGMn",PI[ playerid ][ pPlataPGMn ]);
         INI_WriteInt( File, "KljucKuce",PI[ playerid ][ pKljucKuce ]);
         INI_WriteInt( File, "KljucImanja",PI[ playerid ][ pKljucImanja ]);
          INI_WriteInt( File, "KljucStana",PI[ playerid ][ pKljucStana ]);
          INI_WriteInt( File, "KljucFirme",PI[ playerid ][ pKljucFirme ]);
         INI_WriteInt( File, "Jailed",PI[ playerid ][ pJailed ]);
         INI_WriteInt( File, "JailTime",PI[ playerid ][ pJailTime ]);
         INI_WriteInt( File, "BorbeniStil",PI[ playerid ][ pBorbeniStil ]);
         INI_WriteInt( File, "GunDozvola",PI[ playerid ][ pGunDozvola ]);
         INI_WriteInt( File, "Cigare",PI[ playerid ][ pCigare ]);
         INI_WriteInt( File, "Upaljac",PI[ playerid ][ pUpaljac ]);
         INI_WriteInt( File, "Kanap",PI[ playerid ][ pKanap ]);
         INI_WriteInt( File, "Naocare",PI[ playerid ][ pNaocare ]);
         INI_WriteInt( File, "KolaDoz",PI[ playerid ][ pKolaDoz ]);
         INI_WriteInt( File, "FlyDoz",PI[ playerid ][ pFlyDoz ]);
         INI_WriteInt( File, "BrodDoz",PI[ playerid ][ pBrodDoz ]);
         INI_WriteInt( File, "Zlocin",PI[ playerid ][ pZlocin ]);
         INI_WriteInt( File, "Marama",PI[ playerid ][ pMarama ]);
         INI_WriteInt( File, "Sat",PI[ playerid ][ pSat ]);
         INI_WriteInt( File, "Kacket",PI[ playerid ][ pKacket ]);
         INI_WriteInt( File, "LottoNr1",PI[ playerid ][ pLottoNr1 ]);
         INI_WriteInt( File, "LottoNr2",PI[ playerid ][ pLottoNr2 ]);
         INI_WriteInt( File, "LottoNr3",PI[ playerid ][ pLottoNr3 ]);
         INI_WriteInt( File, "LottoNr4",PI[ playerid ][ pLottoNr4 ]);
         INI_WriteInt( File, "LottoNr5",PI[ playerid ][ pLottoNr5 ]);
         INI_WriteInt( File, "LottoNr6",PI[ playerid ][ pLottoNr6 ]);
         INI_WriteInt( File, "LottoNr7",PI[ playerid ][ pLottoNr7 ]);
            INI_WriteInt( File, "Kazna",PI[ playerid ][ pKazna ]);
            INI_WriteInt( File, "Pasos",PI[ playerid ][ pPasos ]);
            INI_WriteInt( File, "Imenik",PI[ playerid ][ pImenik ]);
            INI_WriteInt( File, "Mobilni",PI[ playerid ][ pMobilni ]);
            INI_WriteInt( File, "MobKredit",PI[ playerid ][ pMobKredit ]);
            INI_WriteInt( File, "Kills",PI[ playerid ][ pKills ]);
            INI_WriteInt( File, "Deaths",PI[ playerid ][ pDeaths ]);
            INI_WriteInt( File, "GM",PI[ playerid ][ pVIP ]);
            INI_WriteInt( File, "Job",PI[ playerid ][ pJob  ]);
            INI_WriteInt( File, "PinKod",PI[ playerid ][ pPinKod ]);
            INI_WriteInt( File, "Drugs",PI[ playerid ][ pDrugs ]);
            INI_WriteInt( File, "Vozilo1",PI[ playerid ][ pVozilo1 ]);
            INI_WriteInt( File, "Vozilo2",PI[ playerid ][ pVozilo2 ]);
          INI_WriteInt( File, "Vozilo3",PI[ playerid ][ pVozilo3 ]);
          INI_WriteInt( File, "GKartica",PI[ playerid ][ pGKartica ]);
          INI_WriteInt( File, "SpawnChange",PI[ playerid ][ pSpawnChange ]);
          INI_WriteInt( File, "KljucGaraze",PI[ playerid ][ pKljucGaraze ]);
          INI_WriteInt( File, "KljucTrafike",PI[ playerid ][ pKljucTrafike ]);
          INI_WriteInt( File, "Zlato",PI[ playerid ][ pZlato ]);
          INI_WriteInt( File, "Alat",PI[ playerid ][ pAlat ]);
          INI_WriteInt( File, "Poklon",PI[ playerid ][ pPoklon ]);
          INI_WriteInt( File, "Lek",PI[ playerid ][ pLek ]);
          INI_WriteInt( File, "Radio",PI[ playerid ][ pRadio ]);
          INI_WriteInt( File, "Bolest",PI[ playerid ][ pBolest ]);
          INI_WriteInt( File, "Code",PI[ playerid ][ pCode ]);
          INI_WriteInt( File, "KazinoNr",PI[ playerid ][ pKazinoNr ]);
          INI_WriteInt( File, "ZadnjiY",PI[ playerid ][ pZadnjiY ]);
         INI_WriteInt( File, "ZadnjiM",PI[ playerid ][ pZadnjiM ]);
         INI_WriteInt( File, "ZadnjiD",PI[ playerid ][ pZadnjiD ]);
         INI_WriteInt( File, "Arrested",PI[ playerid ][ pArrested ]);
         INI_WriteInt( File, "Rank",PI[ playerid ][ pRank ]);
         INI_WriteInt( File, "Gorivo",PI[ playerid ][ pGorivo ]);
         INI_WriteInt( File, "InvWeapon",PI[ playerid ][ pInvWeapon ]);
         INI_WriteInt( File, "InvAmmo",PI[ playerid ][ pInvAmmo ]);
         INI_WriteInt( File, "Mats",PI[ playerid ][ pMats ]);
         INI_WriteInt( File, "Warns",PI[ playerid ][ pWarns ]);
         INI_WriteInt( File, "Kosa",PI[ playerid ][ pKosa ]);
         INI_WriteInt( File, "Snaga",PI[ playerid ][ pSnaga ]);
         INI_WriteInt( File, "Inteligencija",PI[ playerid ][ pInteligencija ]);
         INI_WriteInt( File, "Spretnost",PI[ playerid ][ pSpretnost ]);
         INI_WriteInt( File, "GPS",PI[ playerid ][ pGPS ]);
         INI_WriteInt( File, "Torba",PI[ playerid ][ pTorba ]);
         INI_WriteInt( File, "Racunar",PI[ playerid ][ pRacunar ]);
         INI_WriteInt( File, "Hleb",PI[ playerid ][ pHleb ]);
         INI_WriteInt( File, "Pizza",PI[ playerid ][ pPizza ]);
         INI_WriteInt( File, "Kola",PI[ playerid ][ pKola ]);
         INI_WriteInt( File, "Mleko",PI[ playerid ][ pMleko ]);
         INI_WriteInt( File, "Sendvic",PI[ playerid ][ pSendvic ]);
         INI_WriteInt( File, "Promoter",PI[ playerid ][ pPromoter ]);
         INI_WriteInt( File, "BankKredit",PI[ playerid ][ pBankKredit ]);
         INI_WriteInt( File, "Ipovana",PI[ playerid ][ pIpovana ]);
         INI_WriteInt( File, "Wanted",PI[ playerid ][ pWanted ]);
         INI_WriteInt( File, "LTA",PI[ playerid ][ pLTA ]);
         INI_WriteInt( File, "Suspend",PI[ playerid ][ pSuspend ]);
         INI_WriteInt( File, "IJob",PI[ playerid ][ pIJob ]);
         INI_WriteInt( File, "Kaciga",PI[ playerid ][ pKaciga ]);
         INI_WriteInt( File, "MemberEx",PI[ playerid ][ pMemberEx ]);
         INI_WriteInt( File, "SkinEx",PI[ playerid ][ pSkinEx ]);
         INI_WriteInt( File, "LeaderEx",PI[ playerid ][ pLeaderEx ]);
         INI_WriteInt( File, "FZKills",PI[ playerid ][ pFZKills ]);
         INI_WriteInt( File, "FZDeaths",PI[ playerid ][ pFZDeaths ]);
         INI_WriteInt( File, "VIPDan",PI[ playerid ][ pVIPDan ]);
         INI_WriteInt( File, "VIPMesec",PI[ playerid ][ pVIPMesec ]);
         INI_WriteInt( File, "VIPGodina",PI[ playerid ][ pVIPGodina ]);
         INI_WriteInt( File, "Ogrlice",PI[ playerid ][ pOgrlice ]);
         INI_WriteInt( File, "Slike",PI[ playerid ][ pSlike ]);
         INI_WriteInt( File, "Mute",PI[ playerid ][ pMute ]);
         INI_WriteInt( File, "VMute",PI[ playerid ][ pVMute ]);
         INI_WriteInt( File, "Novcanik",PI[ playerid ][ pNovcanik ]);
         INI_WriteInt( File, "RPP",PI[ playerid ][ pRPP ]);
         INI_WriteInt( File, "Oglasnik",PI[ playerid ][ pOglasnik ]);
         INI_WriteInt( File, "Ribe",PI[ playerid ][ pRibe ]);
         INI_WriteInt( File, "Swat",PI[ playerid ][ pSwat ]);
         INI_WriteInt( File, "Kruska",PI[ playerid ][ pKruska ]);
         INI_WriteInt( File, "Jabuka",PI[ playerid ][ pJabuka ]);
         INI_WriteInt( File, "Sljiva",PI[ playerid ][ pSljiva ]);
         INI_WriteInt( File, "DrvoKruska",PI[ playerid ][ pDrvoKruska ]);
         INI_WriteInt( File, "DrvoJabuka",PI[ playerid ][ pDrvoJabuka ]);
         INI_WriteInt( File, "DrvoSljiva",PI[ playerid ][ pDrvoSljiva ]);
         INI_WriteInt( File, "KontejnerVreme",PI[ playerid ][ KontejnerVreme ]);
         INI_WriteInt( File, "GrebGr",PI[ playerid ][ pGrebGr ]);
         INI_WriteInt( File, "Klesta",PI[ playerid ][ pKlesta ]);
         INI_WriteInt( File, "Kartica",PI[ playerid ][ pKartica ]);
         INI_WriteInt( File, "Sraf",PI[ playerid ][ pSraf ]);
         INI_WriteFloat(File,"PosX",PI[ playerid ][ pPosX ]);
         INI_WriteFloat(File,"PosY",PI[ playerid ][ pPosY ]);
         INI_WriteFloat(File,"PosZ",PI[ playerid ][ pPosZ ]);
         INI_WriteFloat(File,"PosAngle",PI[ playerid ][ pPosAngle ]);
         INI_WriteInt( File, "PosVW",PI[ playerid ][ pPosVW ]);
         INI_WriteInt( File, "PosInt",PI[ playerid ][ pPosInt ]);
         INI_WriteInt( File, "PosUsao",PI[ playerid ][ pPosUsao ]);
         INI_WriteInt( File, "ASlot",PI[ playerid ][ pASlot ]);
         INI_WriteInt( File, "SSlot",PI[ playerid ][ pSSlot ]);
         INI_WriteInt( File, "Gun1",PI[ playerid ][ pGun1 ]);
         INI_WriteInt( File, "Gun2",PI[ playerid ][ pGun2 ]);
         INI_WriteInt( File, "Gun3",PI[ playerid ][ pGun3 ]);
         INI_WriteInt( File, "Gun4",PI[ playerid ][ pGun4 ]);
         INI_WriteInt( File, "Ammo1",PI[ playerid ][ pAmmo1 ]);
         INI_WriteInt( File, "Ammo2",PI[ playerid ][ pAmmo2 ]);
         INI_WriteInt( File, "Ammo3",PI[ playerid ][ pAmmo3 ]);
         INI_WriteInt( File, "Ammo4",PI[ playerid ][ pAmmo4 ]);
         INI_WriteInt( File, "Crash",PI[ playerid ][ pCrash ]);
         INI_WriteInt( File, "KljucVikendice",PI[ playerid ][ pKljucVikendice ]);
         INI_WriteInt( File, "Penzija",PI[ playerid ][ pPenzija ]);
         INI_WriteInt( File, "Married",PI[ playerid ][ pMarried ]);
         INI_WriteString(File,"MarriedTo",PI[ playerid ][ pMarriedTo ]);
         INI_WriteInt( File, "MSlot",PI[ playerid ][ pMSlot ]);
         INI_WriteInt( File, "Akcenat",PI[ playerid ][ pAkcenat ]);
         INI_WriteInt( File, "GM",PI[ playerid ][ pGM ]);
         INI_WriteInt( File, "GChat",PI[ playerid ][ pGChat ]);
         INI_WriteInt( File, "Zica",PI[ playerid ][ pZica ]);
         INI_WriteInt( File, "Ugovor",PI[ playerid ][ pUgovor ]);
         INI_WriteInt( File, "Sigurnosni",PI[ playerid ][ pSigurnosni ]);
         INI_WriteInt( File, "Kofer",PI[ playerid ][ pKofer ]);
         INI_WriteInt( File, "SkillATM",PI[ playerid ][ pSkillATM ]);
         INI_WriteInt( File, "SkillPilot",PI[ playerid ][ pSkillPilot ]);
         INI_WriteInt( File, "SkillKamiondzija",PI[ playerid ][ pSkillKamiondzija ]);
         INI_WriteInt( File, "Robbing",PI[ playerid ][ pRobbing ]);
         INI_WriteInt( File, "JackPot",PI[ playerid ][ pJackPot ]);
         INI_WriteInt( File, "KamionDoz",PI[ playerid ][ pKamionDoz ]);
         INI_WriteInt( File, "MotorDoz",PI[ playerid ][ pMotorDoz ]);
         INI_WriteInt( File, "FirmaUsao",PI[ playerid ][ pFirmaUsao ]);
         INI_WriteInt( File, "DJ",PI[ playerid ][ pDJ ]);
         INI_WriteInt( File, "YouTuber",PI[ playerid ][ pYouTuber ]);
         INI_WriteInt( File, "SimecRank",PI[ playerid ][ pSimecRank ]);
         INI_WriteInt( File, "Security",PI[ playerid ][ pSecurity ]);
         INI_WriteInt( File, "Vozac",PI[ playerid ][ pVozac ]);
         INI_WriteInt( File, "Gradonacelnik",PI[ playerid ][ pGradonacelnik ]);
         INI_WriteInt( File, "InvWeapon1",PI[ playerid ][ pInvWeapon1 ]);
         INI_WriteInt( File, "InvAmmo1",PI[ playerid ][ pInvAmmo1 ]);
         INI_WriteInt( File, "InvWeapon2",PI[ playerid ][ pInvWeapon2 ]);
         INI_WriteInt( File, "InvAmmo2",PI[ playerid ][ pInvAmmo2 ]);
         INI_WriteInt( File, "NY",PI[ playerid ][ pNY ]);
         INI_WriteInt( File, "SigurnosniNew",PI[ playerid ][ pSigurnosniNew ]);
         INI_WriteInt( File, "Injekcija",PI[ playerid ][ pInjekcija ]);
         INI_WriteInt( File, "Kokain",PI[ playerid ][ pKokain ]);
         INI_WriteInt( File, "Heroin",PI[ playerid ][ pHeroin ]);
         INI_WriteInt( File, "Weed",PI[ playerid ][ pWeed ]);
         INI_WriteInt( File, "Ectasy",PI[ playerid ][ pEctasy ]);
         INI_WriteInt( File, "KaznaWarn",PI[ playerid ][ pKaznaWarn ]);
         INI_WriteInt( File, "Crack",PI[ playerid ][ pCrack ]);
         INI_WriteInt( File, "WExists",PI[ playerid ][ pWExists ]);
           INI_WriteFloat(File,"WX",PI[ playerid ][ pWX ]);
           INI_WriteFloat(File,"WY",PI[ playerid ][ pWY ]);
           INI_WriteFloat(File,"WZ",PI[ playerid ][ pWZ ]);
           INI_WriteInt( File, "WVW",PI[ playerid ][ pWVW ]);
           INI_WriteInt( File, "WInt",PI[ playerid ][ pWInt ]);
           INI_WriteInt( File, "WValue",PI[ playerid ][ pWValue ]);
           INI_WriteInt( File, "WObject",PI[ playerid ][ pWObject ]);
           INI_WriteInt( File, "WTimer",PI[ playerid ][ pWTimer ]);
           INI_WriteInt( File, "WSeeds",PI[ playerid ][ pWSeeds ]);
         INI_WriteInt( File, "NajviseOnline",PI[ playerid ][ pNajviseOnline ]);
         INI_WriteInt( File, "Donator",PI[ playerid ][ pDonator ]);
         INI_WriteInt( File, "RChan",PI[ playerid ][ pRChan ]);
         INI_WriteInt( File, "NewRadio",PI[ playerid ][ pNewRadio ]);
         INI_WriteInt( File, "RAdmin",PI[ playerid ][ pRAdmin ]);
         INI_WriteInt( File, "Hangar",PI[ playerid ][ pHangar ]);
         INI_WriteInt( File, "Kaznjen",PI[ playerid ][ pKaznjen ]);
         INI_WriteInt( File, "TogPhone",PI[ playerid ][ pTogPhone ]);
         INI_WriteInt( File, "TogCD",PI[ playerid ][ pTogCD ]);
         INI_WriteInt( File, "MobVrsta",PI[ playerid ][ pMobVrsta ]);
         INI_WriteInt( File, "MP3",PI[ playerid ][ pMP3 ]);
         INI_WriteInt( File, "PP",PI[ playerid ][ pPP ]);
         INI_WriteInt( File, "TogWarns",PI[ playerid ][ pTogWarns ]);
         INI_WriteInt( File, "PitanjeID",PI[ playerid ][ pPitanjeID ]);
         INI_WriteString(File,"PitanjeText",PI[ playerid ][ pPitanjeText ]);
         INI_WriteInt( File, "Vozilo4",PI[ playerid ][ pVozilo4 ]);
         INI_WriteInt( File, "Slot4",PI[ playerid ][ pSlot4 ]);
         INI_WriteFloat(File,"CHP",PI[ playerid ][ pCHP ]);
         INI_WriteFloat(File,"CArmour",PI[ playerid ][ pCArmour ]);
         INI_WriteInt( File, "Drzava",PI[ playerid ][ pDrzava ]);
         INI_WriteInt( File, "Boje",PI[ playerid ][ pBoje ]);
          INI_Close(File);
       }
   }
    return true;
}[/pawn]

ne pise nista
tako bude samo udjem kucam /vips ne ispisuje nit komande mogu koristiti nit imam u accu upisanog vipa
Srbija RolePlay v1 - uskoro

Jednostavno je ime za cuvanje vipa ti je "GM" okej, imas liniju [pawn]INI_WriteInt( File, "GM",PI[ playerid ][ pVIP ]);[/pawn] Okej. Ispod toga imas takodje liniju koja ti zapisuje "GM" ali je ovaj put [pawn]INI_WriteInt( File, "GM",PI[ playerid ][ pGM ]);[/pawn]
Sta se tu desava?
Dakle pokrenes cuvanje i ono ti zapise GM na vrijednost vipa, medjutim ti imas GM na 0, a GM ti je ispod vip cuvanja tako da jednostavno prvo ga zapise nakon toga ga obrise, promeni ime iz "GM" u "VIP" tamo gde cuvas vipa u tom slucaju


[pawn]
INI_WriteInt( File, "GM",PI[ playerid ][ pVip ]);
[/pawn]
Zameni sa
[pawn]
INI_WriteInt( File, "VIP",PI[ playerid ][ pVip ]);
[/pawn]


Dalje
[pawn]
INI_Int( "GM",PI[ playerid ][ pVIP ]);
[/pawn]
zameni sa
[pawn]
INI_Int( "Vip",PI[ playerid ][ pVIP ]);
[/pawn]
Nadam se da si shvatio pozz

hvala puno sad cu probam pa javljam ali to jr to verovatno
Srbija RolePlay v1 - uskoro