[Ajuda] Dini Salvando em Local Errado!
#1

Ola venho mais uma vez, como alguns sabem to comeзando a mecher
com Dini, e to com um problema , quando eu registro a senha
e tudo mais ele ano criar o arquivo dentro da pasta indicada
mais ele cria um arquivo sem extenзгo na pasta ScriptFiles!

vou postar o meu sistema de Registro!

pawn Код:
if(dialogid == 1)
    {
        new name[MAX_PLAYER_NAME], file[256], arquivo[64], TextPass[256];
        GetPlayerName(playerid, name, sizeof(name));
        if(response)
        {
            if(strlen(inputtext) == 0)
            {
                ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "{FFFFFF}Conta Nгo Registrada", "{CFCDCD}Olб para se {F50A0A}Registrar\n {CFCDCD}E sу digitar uma Senha", "Registrar", "Sair");
            }
            format(file, sizeof(file), "Contas/%s.ini", name);
            if(!fexist(file))
            {
            format(TextPass, sizeof(TextPass),"[BVO RPG]: Seja Bem Vindo ao Servidor! Atenзгo nunca esqueзa de sua senha(Pass: %s)", name, inputtext);
            SendClientMessage(playerid, BRANCO, TextPass)
            format(arquivo, sizeof(arquivo), "Contas/%s.ini", name);
            dini_Create(arquivo);
            dini_IntSet(file,"Password", udb_hash(inputtext));
            PlayerInfo[playerid][pCash] = GetPlayerMoneyEx(playerid);
        //----------------------------------------------------------
            dini_IntSet(file, "Level",PlayerInfo[playerid][pLevel] = 5);
            dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdmin] = 0);
            dini_IntSet(file, "DonateRank",PlayerInfo[playerid][pDonateRank] = 0);
            dini_IntSet(file, "UpgradePoints",PlayerInfo[playerid][gPupgrade] = 0);
            dini_IntSet(file, "ConnectedTime",PlayerInfo[playerid][pConnectTime] = 0);
            dini_IntSet(file, "Registered",PlayerInfo[playerid][pReg] = 0);
            dini_IntSet(file, "Sex",PlayerInfo[playerid][pSex] = 0);
            dini_IntSet(file, "Age",PlayerInfo[playerid][pAge] = 18);
            dini_IntSet(file, "Origin",PlayerInfo[playerid][pOrigin] = 1);
            dini_IntSet(file, "CK",PlayerInfo[playerid][pCK] = 0);
            dini_IntSet(file, "Muted",PlayerInfo[playerid][pMuted] = 0);
            dini_IntSet(file, "Respect",PlayerInfo[playerid][pExp] = 0);
            dini_IntSet(file, "Money",PlayerInfo[playerid][pCash] = 0);
            dini_IntSet(file, "Bank",PlayerInfo[playerid][pAccount] = 0);
            dini_IntSet(file, "Crimes",PlayerInfo[playerid][pCrimes] = 0);
            dini_IntSet(file, "Kills",PlayerInfo[playerid][pKills] = 0);
            dini_IntSet(file, "Deaths",PlayerInfo[playerid][pDeaths] = 0);
            dini_IntSet(file, "Arrested",PlayerInfo[playerid][pArrested] = 0);
            dini_IntSet(file, "WantedDeaths",PlayerInfo[playerid][pWantedDeaths] = 0);
            dini_IntSet(file, "Phonebook",PlayerInfo[playerid][pPhoneBook] = 0);
            dini_IntSet(file, "LottoNr",PlayerInfo[playerid][pLottoNr] = 0);
            dini_IntSet(file, "Fishes",PlayerInfo[playerid][pFishes] = 0);
            dini_IntSet(file, "BiggestFish",PlayerInfo[playerid][pBiggestFish] = 0);
            dini_IntSet(file, "Job",PlayerInfo[playerid][pJob] = 0);
            dini_IntSet(file, "Paycheck",PlayerInfo[playerid][pPayCheck] = 0);
            dini_IntSet(file, "HeadValue",PlayerInfo[playerid][pHeadValue] = 0);
            dini_IntSet(file, "Jailed",PlayerInfo[playerid][pJailed] = 0);
            dini_IntSet(file, "JailTime",PlayerInfo[playerid][pJailTime] = 0);
            dini_IntSet(file, "Materials",PlayerInfo[playerid][pMats] = 0);
            dini_IntSet(file, "Drugs",PlayerInfo[playerid][pDrugs] = 0);
            dini_IntSet(file, "Leader",PlayerInfo[playerid][pLeader] = 0);
            dini_IntSet(file, "Member",PlayerInfo[playerid][pMember] = 0);
            dini_IntSet(file, "FMember",PlayerInfo[playerid][pFMember] = 0);
            dini_IntSet(file, "Rank",PlayerInfo[playerid][pRank] = 0);
            dini_IntSet(file, "Char",PlayerInfo[playerid][pChar] = 0);
            dini_IntSet(file, "ContractTime",PlayerInfo[playerid][pContractTime] = 0);
            dini_IntSet(file, "DetSkill",PlayerInfo[playerid][pDetSkill] = 0);
            dini_IntSet(file, "SexSkill",PlayerInfo[playerid][pSexSkill] = 0);
            dini_IntSet(file, "BoxSkill",PlayerInfo[playerid][pBoxSkill] = 0);
            dini_IntSet(file, "LawSkill",PlayerInfo[playerid][pLawSkill] = 0);
            dini_IntSet(file, "MechSkill",PlayerInfo[playerid][pMechSkill] = 0);
            dini_IntSet(file, "JackSkill",PlayerInfo[playerid][pJackSkill] = 0);
            dini_IntSet(file, "CarSkill",PlayerInfo[playerid][pCarSkill] = 0);
            dini_IntSet(file, "NewsSkill",PlayerInfo[playerid][pNewsSkill] = 0);
            dini_IntSet(file, "DrugsSkill",PlayerInfo[playerid][pDrugsSkill] = 0);
            dini_IntSet(file, "CookSkill",PlayerInfo[playerid][pCookSkill] = 0);
            dini_IntSet(file, "FishSkill",PlayerInfo[playerid][pFishSkill] = 0);
            dini_FloatSet(file, "SHealth",PlayerInfo[playerid][pSHealth]);
            dini_FloatSet(file, "Health",PlayerInfo[playerid][pHealth] = 0);
            GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
            dini_IntSet(file, "Int",PlayerInfo[playerid][pInt] = 0);
            dini_IntSet(file, "Local",PlayerInfo[playerid][pLocal] = 0);
            dini_IntSet(file, "Team",PlayerInfo[playerid][pModel] = 0);
            dini_IntSet(file, "PhoneNr",PlayerInfo[playerid][pPnumber] = 0);
            dini_IntSet(file, "House",PlayerInfo[playerid][pPhousekey] = 0);
            dini_IntSet(file, "Bizz",PlayerInfo[playerid][pPbiskey] = 0);
            /*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];
            }*/

            dini_FloatSet(file, "Health",PlayerInfo[playerid][pHealth]);
            dini_FloatSet(file, "Posx",PlayerInfo[playerid][pPos_x]);
            dini_FloatSet(file, "fPosy",PlayerInfo[playerid][pPos_y]);
            dini_FloatSet(file, "Posz",PlayerInfo[playerid][pPos_z]);
            dini_IntSet(file, "CarLic",PlayerInfo[playerid][pAdmin] = 0);
            dini_IntSet(file, "BoatLic",PlayerInfo[playerid][pAdmin] = 0);
            dini_IntSet(file, "FishLic",PlayerInfo[playerid][pAdmin] = 0);
            dini_IntSet(file, "GunLic",PlayerInfo[playerid][pAdmin] = 0);
            dini_IntSet(file, "Gun1",PlayerInfo[playerid][pGun1] = 0);
            dini_IntSet(file, "Gun2",PlayerInfo[playerid][pGun2] = 0);
            dini_IntSet(file, "Gun3",PlayerInfo[playerid][pGun3] = 0);
            dini_IntSet(file, "Gun4",PlayerInfo[playerid][pGun4] = 0);
            dini_IntSet(file, "Ammo1",PlayerInfo[playerid][pAmmo1] = 0);
            dini_IntSet(file, "Ammo2",PlayerInfo[playerid][pAmmo2] = 0);
            dini_IntSet(file, "Ammo3",PlayerInfo[playerid][pAmmo3] = 0);
            dini_IntSet(file, "Ammo4",PlayerInfo[playerid][pAmmo4] = 0);
            dini_IntSet(file, "CarTime",PlayerInfo[playerid][pCarTime] = 0);
            dini_IntSet(file, "PayDay",PlayerInfo[playerid][pPayDay] = 0);
            dini_IntSet(file, "PayDayHad",PlayerInfo[playerid][pPayDayHad] = 0);
            dini_IntSet(file, "CDPlayer",PlayerInfo[playerid][pCDPlayer] = 0);
            dini_IntSet(file, "Wins",PlayerInfo[playerid][pWins] = 0);
            dini_IntSet(file, "Loses",PlayerInfo[playerid][pLoses] = 0);
            dini_IntSet(file, "AlcoholPerk",PlayerInfo[playerid][pAlcoholPerk] = 0);
            dini_IntSet(file, "DrugPerk",PlayerInfo[playerid][pDrugPerk] = 0);
            dini_IntSet(file, "MiserPerk",PlayerInfo[playerid][pMiserPerk] = 0);
            dini_IntSet(file, "PainPerk",PlayerInfo[playerid][pPainPerk] = 0);
            dini_IntSet(file, "TraderPerk",PlayerInfo[playerid][pTraderPerk] = 0);
            dini_IntSet(file, "Tutorial",PlayerInfo[playerid][pTut] = 1);
            dini_IntSet(file, "Mission",PlayerInfo[playerid][pMissionNr] = 0);
            dini_IntSet(file, "Warnings",PlayerInfo[playerid][pWarns] = 0);
            dini_IntSet(file, "Adjustable",PlayerInfo[playerid][pAdjustable] = 0);
            dini_IntSet(file, "Fuel",PlayerInfo[playerid][pFuel] = 0);
            dini_IntSet(file, "Married",PlayerInfo[playerid][pMarried] = 0);
            dini_IntSet(file, "MarriedTo",PlayerInfo[playerid][pMarriedTo] = 0);
            dini_IntSet(file, "Maconha",PlayerInfo[playerid][pDrogas] = 0);
            dini_IntSet(file, "Cocaina",PlayerInfo[playerid][pDrogas2] = 0);
            dini_IntSet(file, "Crack",PlayerInfo[playerid][pDrogas3] = 0);
            dini_IntSet(file, "SafeMaconha",PlayerInfo[playerid][pSafeDrogas] = 0);
            dini_IntSet(file, "SafeCocaina",PlayerInfo[playerid][pSafeDrogas2] = 0);
            dini_IntSet(file, "SafeCrack",PlayerInfo[playerid][pSafeDrogas3] = 0);
            dini_IntSet(file, "SafeMateriais",PlayerInfo[playerid][psMats] = 0);
            gPlayerLogged[playerid] = 1;
            PlayerInfo[playerid][pTut] = 1;
            OnPlayerSaveConta(playerid);
            SpawnPlayer(playerid);
            SendClientMessage(playerid, BRANCO, "Logado Automaticamente! Agora siga o Tutorial!")
           
            }
     }
     if (dialogid == 2)
     {
        if(response)
        {
        new stringX[512];
        new stringY[512];
        new playersip[64];
        GetPlayerIp(playerid,playersip,sizeof(playersip));
        new name[MAX_PLAYER_NAME], file[512];
        GetPlayerName(playerid, name, sizeof(name));
        format(file, sizeof(file), "Contas/%s.ini", name);
        if(strlen(inputtext) == 0)
        {
            format(stringX, sizeof(stringX), "%s\n{F2F2F2}Nome: {F03333}%s\n", stringX,name);
            format(stringX, sizeof(stringX), "%s\n{F2F2F2}IP: {F03333}%s\n", stringX,playersip);
            format(stringX, sizeof(stringX), "%s\n{F2F2F2}Digite Sua {F03333}Senha{F2F2F2} Para se logar\n", stringX);
            format(stringX, sizeof(stringX), "%s\n{F2F2F2}OBS:Visite o Forum/Site Para ver as Atualizaзхes \n {F03333}www.brasilvilaonline.com", stringX);
            ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "{F5F52E}Brasil {3EDE76}Vila {1E92F7}Online {F5F52E}RPG", stringX, "Logar", "Sair");
            return 0;
        }
        if(fexist(file))
        {
            new password = dini_Int(file, "Password");
            if(udb_hash(inputtext) != password)
            {
                SendClientMessage(playerid, COLOR_RED, "A SENHA DIGITADA NГO ESTA CORRETA! DIGITE NOVAMENTE");
                format(stringY, sizeof(stringY), "%s\n{F2F2F2}Nome: {F03333}%s\n", stringY,name);
                format(stringY, sizeof(stringY), "%s\n{F2F2F2}IP: {F03333}%s\n", stringY,playersip);
                format(stringY, sizeof(stringY), "%s\n{F2F2F2}Essa e Sua Conta?\n", stringY);
                format(stringY, sizeof(stringY), "%s\n{F2F2F2}Digite Sua {F03333}Senha{F2F2F2} Para se logar\n", stringY);
                format(stringY, sizeof(stringY), "%s\n{F2F2F2}OBS:Visite o Forum/Site Para ver as Atualizaзхes \n {F03333}www.brasilvilaonline.com", stringY);
                ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "{F5F52E}Brasil {3EDE76}Vila {1E92F7}Online {F5F52E}R{3EDE76}P{1E92F7}G", stringY, "Logar", "Sair");
                return 1;
            }
            if(udb_hash(inputtext) == password)
            {
                 SpawnPlayer(playerid);
                 PlayerInfo[playerid][pLevel] = dini_Int(file, "Level");
                 PlayerInfo[playerid][pAdmin] = dini_Int(file, "AdminLevel");
                 PlayerInfo[playerid][pDonateRank] = dini_Int(file, "DonateRank");
                 PlayerInfo[playerid][gPupgrade] = dini_Int(file, "UpgradePoints");
                 PlayerInfo[playerid][pConnectTime] = dini_Int(file, "ConnectedTime");
                 PlayerInfo[playerid][pReg] = dini_Int(file, "Registered");
                 PlayerInfo[playerid][pSex] = dini_Int(file, "Sex");
                 PlayerInfo[playerid][pAge] = dini_Int(file, "Age");
                 PlayerInfo[playerid][pOrigin] = dini_Int(file, "Origin");
                 PlayerInfo[playerid][pCK] = dini_Int(file, "CK");
                 PlayerInfo[playerid][pMuted] = dini_Int(file, "Muted");
                 PlayerInfo[playerid][pExp] = dini_Int(file, "Respect");
                 PlayerInfo[playerid][pCash] = dini_Int(file, "Money");
                 PlayerInfo[playerid][pAccount] = dini_Int(file, "Bank");
                 PlayerInfo[playerid][pCrimes] = dini_Int(file, "Crimes");
                 PlayerInfo[playerid][pKills] = dini_Int(file, "Kills");
                 PlayerInfo[playerid][pDeaths] = dini_Int(file, "Deaths");
                 PlayerInfo[playerid][pArrested] = dini_Int(file, "Arrested");
                 PlayerInfo[playerid][pWantedDeaths] = dini_Int(file, "WantedDeaths");
                 PlayerInfo[playerid][pPhoneBook] = dini_Int(file, "Phonebook");
                 PlayerInfo[playerid][pLottoNr] = dini_Int(file, "LottoNr");
                 PlayerInfo[playerid][pFishes] = dini_Int(file, "Fishes");
                 PlayerInfo[playerid][pBiggestFish] = dini_Int(file, "BiggestFish");
                 PlayerInfo[playerid][pJob] = dini_Int(file, "Job");
                 PlayerInfo[playerid][pPayCheck] = dini_Int(file, "Paycheck");
                 PlayerInfo[playerid][pHeadValue] = dini_Int(file, "HeadValue");
                 PlayerInfo[playerid][pJailed] = dini_Int(file, "Jailed");
                 PlayerInfo[playerid][pJailTime] = dini_Int(file, "JailTime");
                 PlayerInfo[playerid][pMats] = dini_Int(file, "Materials");
                 PlayerInfo[playerid][pDrugs] = dini_Int(file, "Drugs");
                 PlayerInfo[playerid][pLeader] = dini_Int(file, "Leader");
                 PlayerInfo[playerid][pMember] = dini_Int(file, "Member");
                 PlayerInfo[playerid][pFMember] = dini_Int(file, "FMember");
                 PlayerInfo[playerid][pRank] = dini_Int(file, "Rank");
                 PlayerInfo[playerid][pChar] = dini_Int(file, "Char");
                 PlayerInfo[playerid][pContractTime] = dini_Int(file, "ContractTime");
                 PlayerInfo[playerid][pDetSkill] = dini_Int(file, "DetSkill");
                 PlayerInfo[playerid][pSexSkill] = dini_Int(file, "SexSkill");
                 PlayerInfo[playerid][pBoxSkill] = dini_Int(file, "BoxSkill");
                 PlayerInfo[playerid][pLawSkill] = dini_Int(file, "LawSkill");
                 PlayerInfo[playerid][pMechSkill] = dini_Int(file, "MechSkill");
                 PlayerInfo[playerid][pJackSkill] = dini_Int(file, "JackSkill");
                 PlayerInfo[playerid][pCarSkill] = dini_Int(file, "CarSkill");
                 PlayerInfo[playerid][pNewsSkill] = dini_Int(file, "NewsSkill");
                 PlayerInfo[playerid][pDrugsSkill] = dini_Int(file, "DrugsSkill");
                 PlayerInfo[playerid][pCookSkill] = dini_Int(file, "CookSkill");
                 PlayerInfo[playerid][pFishSkill] = dini_Int(file, "FishSkill");
                 PlayerInfo[playerid][pSHealth] = dini_Int(file, "SHealth");
                 PlayerInfo[playerid][pHealth] = dini_Int(file, "Health");
                 PlayerInfo[playerid][pInt] = dini_Int(file, "Int");
                 PlayerInfo[playerid][pLocal] = dini_Int(file, "Local");
                 PlayerInfo[playerid][pTeam] = dini_Int(file, "Team");
                 PlayerInfo[playerid][pModel] = dini_Int(file, "Model");
                 PlayerInfo[playerid][pPnumber] = dini_Int(file, "PhoneNr");
                 PlayerInfo[playerid][pPhousekey] = dini_Int(file, "House");
                 PlayerInfo[playerid][pPbiskey] = dini_Int(file, "Bizz");
                 PlayerInfo[playerid][pPos_x] = dini_Int(file, "Posx");
                 PlayerInfo[playerid][pPos_y] = dini_Int(file, "Posy");
                 PlayerInfo[playerid][pPos_z] = dini_Int(file, "Posz");
                 PlayerInfo[playerid][pCarLic] = dini_Int(file, "CarLic");
                 PlayerInfo[playerid][pFlyLic] = dini_Int(file, "FlyLic");
                 PlayerInfo[playerid][pBoatLic] = dini_Int(file, "BoatLic");
                 PlayerInfo[playerid][pFishLic] = dini_Int(file, "FishLic");
                 PlayerInfo[playerid][pGunLic] = dini_Int(file, "GunLic");
                 PlayerInfo[playerid][pGun1] = dini_Int(file, "Gun1");
                 PlayerInfo[playerid][pGun2] = dini_Int(file, "Gun2");
                 PlayerInfo[playerid][pGun3] = dini_Int(file, "Gun3");
                 PlayerInfo[playerid][pGun4] = dini_Int(file, "Gun4");
                 PlayerInfo[playerid][pAmmo1] = dini_Int(file, "Ammo1");
                 PlayerInfo[playerid][pAmmo2] = dini_Int(file, "Ammo2");
                 PlayerInfo[playerid][pAmmo3] = dini_Int(file, "Ammo3");
                 PlayerInfo[playerid][pAmmo4] = dini_Int(file, "Ammo4");
                 PlayerInfo[playerid][pCarTime] = dini_Int(file, "CarTime");
                 PlayerInfo[playerid][pPayDay] = dini_Int(file, "PayDay");
                 PlayerInfo[playerid][pPayDayHad] = dini_Int(file, "PayDayHad");
                 PlayerInfo[playerid][pCDPlayer] = dini_Int(file, "CDPlayer");
                 PlayerInfo[playerid][pWins] = dini_Int(file, "Wins");
                 PlayerInfo[playerid][pLoses] = dini_Int(file, "Loses");
                 PlayerInfo[playerid][pAlcoholPerk] = dini_Int(file, "AlcoholPerk");
                 PlayerInfo[playerid][pDrugPerk] = dini_Int(file, "DrugPerk");
                 PlayerInfo[playerid][pMiserPerk] = dini_Int(file, "MiserPerk");
                 PlayerInfo[playerid][pPainPerk] = dini_Int(file, "PainPerk");
                 PlayerInfo[playerid][pTraderPerk] = dini_Int(file, "TraderPerk");
                 PlayerInfo[playerid][pTut] = dini_Int(file, "Tutorial");
                 PlayerInfo[playerid][pMissionNr] = dini_Int(file, "Mission");
                 PlayerInfo[playerid][pWarns] = dini_Int(file, "Warnings");
                 PlayerInfo[playerid][pAdjustable] = dini_Int(file, "Adjustable");
                 PlayerInfo[playerid][pFuel] = dini_Int(file, "Fuel");
                 PlayerInfo[playerid][pMarried] = dini_Int(file, "Married");
                 PlayerInfo[playerid][pMarriedTo] = dini_Int(file, "MarriedTo");
                 PlayerInfo[playerid][pDrogas] = dini_Int(file, "Maconha");
                 PlayerInfo[playerid][pDrogas2] = dini_Int(file, "Cocaina");
                 PlayerInfo[playerid][pDrogas3] = dini_Int(file, "Crack");
                 PlayerInfo[playerid][pSafeDrogas] = dini_Int(file, "SafeMaconha");
                 PlayerInfo[playerid][pSafeDrogas2] = dini_Int(file, "SafeCocaina");
                 PlayerInfo[playerid][pSafeDrogas3] = dini_Int(file, "SafeCrack");
                 PlayerInfo[playerid][psMats] = dini_Int(file, "SafeMateriais");
                 gPlayerLogged[playerid] = 1;
                 new string2[128];
                 new tmp2[128];
                 format(string2, sizeof(string2), "SERVER: Bem Vindo %s",name);
                 SendClientMessage(playerid, COLOR_WHITE,string2);
                 printf("%s esta logado no Servidor.",name);
                 format(tmp2, sizeof(tmp2), "~w~Bem Vindo ~n~~y~   %s", name);
                 GameTextForPlayer(playerid, tmp2, 5000, 1);
                 //SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
                 if(Resgistrei[playerid] >= 1)
                 {
                    RegistrationStep[playerid] = 1;
                    PlayerInfo[playerid][pTut] = 1;
                    ShowPlayerDialog(playerid, 3, DIALOG_STYLE_MSGBOX, "Brasil Vila Online RPG", "Escolha Seu Sexo Por Favor.\n Masculino й Homem!\n Feminino й Mulher!", "Masculino", "Femino");
                 }
            }}}
        }}
Se houve algo Errado pf me mostrem on‌de =X
Reply
#2

Vc crio a pasta ?
Reply
#3

Sim olhe sу
pawn Код:
format(arquivo, sizeof(arquivo), "Contas/%s.ini", name);

Aqueles arquivos sao as contas a apsta de contas estгo lб
Reply
#4

Acho que encontrei o erro ... nгo tenho certesa mais deve ser pela minah falta de atenзгo .. vou compilar e ja aj responde se funfou
pawn Код:
format(arquivo, sizeof(arquivo), "Contas/%s.ini", name);
            dini_Create(arquivo);
Esse ai ta escrito em arquivo , e eu fis o resto escrito em File
Reply
#5

Ja tentou colocar uma "/" antes do "Contas ..." ?

Ficaria assim:

PHP код:
format(arquivosizeof(arquivo), "/Contas/%s.ini"name); 
Reply
#6

Desculpem, mas preciso de falar isto...
@OFF Shadoww5, entra no msn.
Reply
#7

Quote:
Originally Posted by Shadoww5
Посмотреть сообщение
Ja tentou colocar uma "/" antes do "Contas ..." ?

Ficaria assim:

PHP код:
format(arquivosizeof(arquivo), "/Contas/%s.ini"name); 
nгo faz a mнnima diferenзг, isso й mais usado para citar diretуrio:

PHP код:
"./Contas/[iPs]Garfield.cat"
// LOL, porque a maioria nгo usa o [pawn e o [/pawn] como todo mundo ? 
@Topic

Porque nгo usa algum sistema de salvamento ?
  • Sistemas
    - Dini
    - Fini
    - Yini
    - Pini
    - Gini
..
Reply
#8

Garfield, ele usa Dini, mas ta salvando no local errado. O.o
Reply
#9

pawn Код:
static stsreasrasr[100];
            format(stsreasrasr, sizeof(stsreasrasr), "Contas/%s.ini", name);
            if(!fexist(stsreasrasr))
            {
            format(TextPass, sizeof(TextPass),"[BVO RPG]: Seja Bem Vindo ao Servidor! Atenзгo nunca esqueзa de sua senha(Pass: %s)", name, inputtext);
            SendClientMessage(playerid, BRANCO, TextPass)
            format(arquivo, sizeof(arquivo), "Contas/%s.ini", name);
            dini_Create(arquivo);
            dini_IntSet(stsreasrasr,"Password", udb_hash(inputtext));
            PlayerInfo[playerid][pCash] = GetPlayerMoneyEx(playerid);
        //----------------------------------------------------------
            dini_IntSet(stsreasrasr, "Level",PlayerInfo[playerid][pLevel] = 5);
            dini_IntSet(stsreasrasr, "AdminLevel",PlayerInfo[playerid][pAdmin] = 0);
            dini_IntSet(stsreasrasr, "DonateRank",PlayerInfo[playerid][pDonateRank] = 0);
            dini_IntSet(stsreasrasr, "UpgradePoints",PlayerInfo[playerid][gPupgrade] = 0);
            dini_IntSet(stsreasrasr, "ConnectedTime",PlayerInfo[playerid][pConnectTime] = 0);
            dini_IntSet(stsreasrasr, "Registered",PlayerInfo[playerid][pReg] = 0);
            dini_IntSet(stsreasrasr, "Sex",PlayerInfo[playerid][pSex] = 0);
            dini_IntSet(stsreasrasr, "Age",PlayerInfo[playerid][pAge] = 18);
            dini_IntSet(stsreasrasr, "Origin",PlayerInfo[playerid][pOrigin] = 1);
            dini_IntSet(stsreasrasr, "CK",PlayerInfo[playerid][pCK] = 0);
            dini_IntSet(stsreasrasr, "Muted",PlayerInfo[playerid][pMuted] = 0);
            dini_IntSet(stsreasrasr, "Respect",PlayerInfo[playerid][pExp] = 0);
            dini_IntSet(stsreasrasr, "Money",PlayerInfo[playerid][pCash] = 0);
            dini_IntSet(stsreasrasr, "Bank",PlayerInfo[playerid][pAccount] = 0);
            dini_IntSet(stsreasrasr, "Crimes",PlayerInfo[playerid][pCrimes] = 0);
            dini_IntSet(stsreasrasr, "Kills",PlayerInfo[playerid][pKills] = 0);
            dini_IntSet(stsreasrasr, "Deaths",PlayerInfo[playerid][pDeaths] = 0);
            dini_IntSet(stsreasrasr, "Arrested",PlayerInfo[playerid][pArrested] = 0);
            dini_IntSet(stsreasrasr, "WantedDeaths",PlayerInfo[playerid][pWantedDeaths] = 0);
            dini_IntSet(stsreasrasr, "Phonebook",PlayerInfo[playerid][pPhoneBook] = 0);
            dini_IntSet(stsreasrasr, "LottoNr",PlayerInfo[playerid][pLottoNr] = 0);
            dini_IntSet(stsreasrasr, "Fishes",PlayerInfo[playerid][pFishes] = 0);
            dini_IntSet(stsreasrasr, "BiggestFish",PlayerInfo[playerid][pBiggestFish] = 0);
            dini_IntSet(stsreasrasr, "Job",PlayerInfo[playerid][pJob] = 0);
            dini_IntSet(stsreasrasr, "Paycheck",PlayerInfo[playerid][pPayCheck] = 0);
            dini_IntSet(stsreasrasr, "HeadValue",PlayerInfo[playerid][pHeadValue] = 0);
            dini_IntSet(stsreasrasr, "Jailed",PlayerInfo[playerid][pJailed] = 0);
            dini_IntSet(stsreasrasr, "JailTime",PlayerInfo[playerid][pJailTime] = 0);
            dini_IntSet(stsreasrasr, "Materials",PlayerInfo[playerid][pMats] = 0);
            dini_IntSet(stsreasrasr, "Drugs",PlayerInfo[playerid][pDrugs] = 0);
            dini_IntSet(stsreasrasr, "Leader",PlayerInfo[playerid][pLeader] = 0);
            dini_IntSet(stsreasrasr, "Member",PlayerInfo[playerid][pMember] = 0);
            dini_IntSet(stsreasrasr, "FMember",PlayerInfo[playerid][pFMember] = 0);
            dini_IntSet(stsreasrasr, "Rank",PlayerInfo[playerid][pRank] = 0);
            dini_IntSet(stsreasrasr, "Char",PlayerInfo[playerid][pChar] = 0);
            dini_IntSet(stsreasrasr, "ContractTime",PlayerInfo[playerid][pContractTime] = 0);
            dini_IntSet(stsreasrasr, "DetSkill",PlayerInfo[playerid][pDetSkill] = 0);
            dini_IntSet(stsreasrasr, "SexSkill",PlayerInfo[playerid][pSexSkill] = 0);
            dini_IntSet(stsreasrasr, "BoxSkill",PlayerInfo[playerid][pBoxSkill] = 0);
            dini_IntSet(stsreasrasr, "LawSkill",PlayerInfo[playerid][pLawSkill] = 0);
            dini_IntSet(stsreasrasr, "MechSkill",PlayerInfo[playerid][pMechSkill] = 0);
            dini_IntSet(stsreasrasr, "JackSkill",PlayerInfo[playerid][pJackSkill] = 0);
            dini_IntSet(stsreasrasr, "CarSkill",PlayerInfo[playerid][pCarSkill] = 0);
            dini_IntSet(stsreasrasr, "NewsSkill",PlayerInfo[playerid][pNewsSkill] = 0);
            dini_IntSet(stsreasrasr, "DrugsSkill",PlayerInfo[playerid][pDrugsSkill] = 0);
            dini_IntSet(stsreasrasr, "CookSkill",PlayerInfo[playerid][pCookSkill] = 0);
            dini_IntSet(stsreasrasr, "FishSkill",PlayerInfo[playerid][pFishSkill] = 0);
            dini_FloatSet(stsreasrasr, "SHealth",PlayerInfo[playerid][pSHealth]);
            dini_FloatSet(stsreasrasr, "Health",PlayerInfo[playerid][pHealth] = 0);
            GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
            dini_IntSet(stsreasrasr, "Int",PlayerInfo[playerid][pInt] = 0);
            dini_IntSet(stsreasrasr, "Local",PlayerInfo[playerid][pLocal] = 0);
            dini_IntSet(stsreasrasr, "Team",PlayerInfo[playerid][pModel] = 0);
            dini_IntSet(stsreasrasr, "PhoneNr",PlayerInfo[playerid][pPnumber] = 0);
            dini_IntSet(stsreasrasr, "House",PlayerInfo[playerid][pPhousekey] = 0);
            dini_IntSet(stsreasrasr, "Bizz",PlayerInfo[playerid][pPbiskey] = 0);
            /*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];
            }*/

            dini_FloatSet(stsreasrasr, "Health",PlayerInfo[playerid][pHealth]);
            dini_FloatSet(stsreasrasr, "Posx",PlayerInfo[playerid][pPos_x]);
            dini_FloatSet(stsreasrasr, "fPosy",PlayerInfo[playerid][pPos_y]);
            dini_FloatSet(stsreasrasr, "Posz",PlayerInfo[playerid][pPos_z]);
            dini_IntSet(stsreasrasr, "CarLic",PlayerInfo[playerid][pAdmin] = 0);
            dini_IntSet(stsreasrasr, "BoatLic",PlayerInfo[playerid][pAdmin] = 0);
            dini_IntSet(stsreasrasr, "FishLic",PlayerInfo[playerid][pAdmin] = 0);
            dini_IntSet(stsreasrasr, "GunLic",PlayerInfo[playerid][pAdmin] = 0);
            dini_IntSet(stsreasrasr, "Gun1",PlayerInfo[playerid][pGun1] = 0);
            dini_IntSet(stsreasrasr, "Gun2",PlayerInfo[playerid][pGun2] = 0);
            dini_IntSet(stsreasrasr, "Gun3",PlayerInfo[playerid][pGun3] = 0);
            dini_IntSet(stsreasrasr, "Gun4",PlayerInfo[playerid][pGun4] = 0);
            dini_IntSet(stsreasrasr, "Ammo1",PlayerInfo[playerid][pAmmo1] = 0);
            dini_IntSet(stsreasrasr, "Ammo2",PlayerInfo[playerid][pAmmo2] = 0);
            dini_IntSet(stsreasrasr, "Ammo3",PlayerInfo[playerid][pAmmo3] = 0);
            dini_IntSet(stsreasrasr, "Ammo4",PlayerInfo[playerid][pAmmo4] = 0);
            dini_IntSet(stsreasrasr, "CarTime",PlayerInfo[playerid][pCarTime] = 0);
            dini_IntSet(stsreasrasr, "PayDay",PlayerInfo[playerid][pPayDay] = 0);
            dini_IntSet(stsreasrasr, "PayDayHad",PlayerInfo[playerid][pPayDayHad] = 0);
            dini_IntSet(stsreasrasr, "CDPlayer",PlayerInfo[playerid][pCDPlayer] = 0);
            dini_IntSet(stsreasrasr, "Wins",PlayerInfo[playerid][pWins] = 0);
            dini_IntSet(stsreasrasr, "Loses",PlayerInfo[playerid][pLoses] = 0);
            dini_IntSet(stsreasrasr, "AlcoholPerk",PlayerInfo[playerid][pAlcoholPerk] = 0);
            dini_IntSet(stsreasrasr, "DrugPerk",PlayerInfo[playerid][pDrugPerk] = 0);
            dini_IntSet(stsreasrasr, "MiserPerk",PlayerInfo[playerid][pMiserPerk] = 0);
            dini_IntSet(stsreasrasr, "PainPerk",PlayerInfo[playerid][pPainPerk] = 0);
            dini_IntSet(stsreasrasr, "TraderPerk",PlayerInfo[playerid][pTraderPerk] = 0);
            dini_IntSet(stsreasrasr, "Tutorial",PlayerInfo[playerid][pTut] = 1);
            dini_IntSet(stsreasrasr, "Mission",PlayerInfo[playerid][pMissionNr] = 0);
            dini_IntSet(stsreasrasr, "Warnings",PlayerInfo[playerid][pWarns] = 0);
            dini_IntSet(stsreasrasr, "Adjustable",PlayerInfo[playerid][pAdjustable] = 0);
            dini_IntSet(stsreasrasr, "Fuel",PlayerInfo[playerid][pFuel] = 0);
            dini_IntSet(stsreasrasr, "Married",PlayerInfo[playerid][pMarried] = 0);
            dini_IntSet(stsreasrasr, "MarriedTo",PlayerInfo[playerid][pMarriedTo] = 0);
            dini_IntSet(stsreasrasr, "Maconha",PlayerInfo[playerid][pDrogas] = 0);
            dini_IntSet(stsreasrasr, "Cocaina",PlayerInfo[playerid][pDrogas2] = 0);
            dini_IntSet(stsreasrasr, "Crack",PlayerInfo[playerid][pDrogas3] = 0);
            dini_IntSet(stsreasrasr, "SafeMaconha",PlayerInfo[playerid][pSafeDrogas] = 0);
            dini_IntSet(stsreasrasr, "SafeCocaina",PlayerInfo[playerid][pSafeDrogas2] = 0);
            dini_IntSet(stsreasrasr, "SafeCrack",PlayerInfo[playerid][pSafeDrogas3] = 0);
            dini_IntSet(stsreasrasr, "SafeMateriais",PlayerInfo[playerid][psMats] = 0);
            gPlayerLogged[playerid] = 1;
            PlayerInfo[playerid][pTut] = 1;
            OnPlayerSaveConta(playerid);
            SpawnPlayer(playerid);
            SendClientMessage(playerid, BRANCO, "Logado Automaticamente! Agora siga o Tutorial!")

            }
     }
     if (dialogid == 2)
     {
        if(response)
        {
        new stringX[512];
        new stringY[512];
        new playersip[64];
        GetPlayerIp(playerid,playersip,sizeof(playersip));
        new name[MAX_PLAYER_NAME], stsreasrasr[512];
        GetPlayerName(playerid, name, sizeof(name));
        format(stsreasrasr, sizeof(stsreasrasr), "Contas/%s.ini", name);
        if(strlen(inputtext) == 0)
        {
            format(stringX, sizeof(stringX), "%s\n{F2F2F2}Nome: {F03333}%s\n", stringX,name);
            format(stringX, sizeof(stringX), "%s\n{F2F2F2}IP: {F03333}%s\n", stringX,playersip);
            format(stringX, sizeof(stringX), "%s\n{F2F2F2}Digite Sua {F03333}Senha{F2F2F2} Para se logar\n", stringX);
            format(stringX, sizeof(stringX), "%s\n{F2F2F2}OBS:Visite o Forum/Site Para ver as Atualizaзхes \n {F03333}www.brasilvilaonline.com", stringX);
            ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "{F5F52E}Brasil {3EDE76}Vila {1E92F7}Online {F5F52E}RPG", stringX, "Logar", "Sair");
            return 0;
        }
        if(fexist(stsreasrasr))
        {
            new password = dini_Int(stsreasrasr, "Password");
            if(udb_hash(inputtext) != password)
            {
                SendClientMessage(playerid, COLOR_RED, "A SENHA DIGITADA NГO ESTA CORRETA! DIGITE NOVAMENTE");
                format(stringY, sizeof(stringY), "%s\n{F2F2F2}Nome: {F03333}%s\n", stringY,name);
                format(stringY, sizeof(stringY), "%s\n{F2F2F2}IP: {F03333}%s\n", stringY,playersip);
                format(stringY, sizeof(stringY), "%s\n{F2F2F2}Essa e Sua Conta?\n", stringY);
                format(stringY, sizeof(stringY), "%s\n{F2F2F2}Digite Sua {F03333}Senha{F2F2F2} Para se logar\n", stringY);
                format(stringY, sizeof(stringY), "%s\n{F2F2F2}OBS:Visite o Forum/Site Para ver as Atualizaзхes \n {F03333}www.brasilvilaonline.com", stringY);
                ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "{F5F52E}Brasil {3EDE76}Vila {1E92F7}Online {F5F52E}R{3EDE76}P{1E92F7}G", stringY, "Logar", "Sair");
                return 1;
            }
            if(udb_hash(inputtext) == password)
            {
                 SpawnPlayer(playerid);
                 PlayerInfo[playerid][pLevel] = dini_Int(stsreasrasr, "Level");
                 PlayerInfo[playerid][pAdmin] = dini_Int(stsreasrasr, "AdminLevel");
                 PlayerInfo[playerid][pDonateRank] = dini_Int(stsreasrasr, "DonateRank");
                 PlayerInfo[playerid][gPupgrade] = dini_Int(stsreasrasr, "UpgradePoints");
                 PlayerInfo[playerid][pConnectTime] = dini_Int(stsreasrasr, "ConnectedTime");
                 PlayerInfo[playerid][pReg] = dini_Int(stsreasrasr, "Registered");
                 PlayerInfo[playerid][pSex] = dini_Int(stsreasrasr, "Sex");
                 PlayerInfo[playerid][pAge] = dini_Int(stsreasrasr, "Age");
                 PlayerInfo[playerid][pOrigin] = dini_Int(stsreasrasr, "Origin");
                 PlayerInfo[playerid][pCK] = dini_Int(stsreasrasr, "CK");
                 PlayerInfo[playerid][pMuted] = dini_Int(stsreasrasr, "Muted");
                 PlayerInfo[playerid][pExp] = dini_Int(stsreasrasr, "Respect");
                 PlayerInfo[playerid][pCash] = dini_Int(stsreasrasr, "Money");
                 PlayerInfo[playerid][pAccount] = dini_Int(stsreasrasr, "Bank");
                 PlayerInfo[playerid][pCrimes] = dini_Int(stsreasrasr, "Crimes");
                 PlayerInfo[playerid][pKills] = dini_Int(stsreasrasr, "Kills");
                 PlayerInfo[playerid][pDeaths] = dini_Int(stsreasrasr, "Deaths");
                 PlayerInfo[playerid][pArrested] = dini_Int(stsreasrasr, "Arrested");
                 PlayerInfo[playerid][pWantedDeaths] = dini_Int(stsreasrasr, "WantedDeaths");
                 PlayerInfo[playerid][pPhoneBook] = dini_Int(stsreasrasr, "Phonebook");
                 PlayerInfo[playerid][pLottoNr] = dini_Int(stsreasrasr, "LottoNr");
                 PlayerInfo[playerid][pFishes] = dini_Int(stsreasrasr, "Fishes");
                 PlayerInfo[playerid][pBiggestFish] = dini_Int(stsreasrasr, "BiggestFish");
                 PlayerInfo[playerid][pJob] = dini_Int(stsreasrasr, "Job");
                 PlayerInfo[playerid][pPayCheck] = dini_Int(stsreasrasr, "Paycheck");
                 PlayerInfo[playerid][pHeadValue] = dini_Int(stsreasrasr, "HeadValue");
                 PlayerInfo[playerid][pJailed] = dini_Int(stsreasrasr, "Jailed");
                 PlayerInfo[playerid][pJailTime] = dini_Int(stsreasrasr, "JailTime");
                 PlayerInfo[playerid][pMats] = dini_Int(stsreasrasr, "Materials");
                 PlayerInfo[playerid][pDrugs] = dini_Int(stsreasrasr, "Drugs");
                 PlayerInfo[playerid][pLeader] = dini_Int(stsreasrasr, "Leader");
                 PlayerInfo[playerid][pMember] = dini_Int(stsreasrasr, "Member");
                 PlayerInfo[playerid][pFMember] = dini_Int(stsreasrasr, "FMember");
                 PlayerInfo[playerid][pRank] = dini_Int(stsreasrasr, "Rank");
                 PlayerInfo[playerid][pChar] = dini_Int(stsreasrasr, "Char");
                 PlayerInfo[playerid][pContractTime] = dini_Int(stsreasrasr, "ContractTime");
                 PlayerInfo[playerid][pDetSkill] = dini_Int(stsreasrasr, "DetSkill");
                 PlayerInfo[playerid][pSexSkill] = dini_Int(stsreasrasr, "SexSkill");
                 PlayerInfo[playerid][pBoxSkill] = dini_Int(stsreasrasr, "BoxSkill");
                 PlayerInfo[playerid][pLawSkill] = dini_Int(stsreasrasr, "LawSkill");
                 PlayerInfo[playerid][pMechSkill] = dini_Int(stsreasrasr, "MechSkill");
                 PlayerInfo[playerid][pJackSkill] = dini_Int(stsreasrasr, "JackSkill");
                 PlayerInfo[playerid][pCarSkill] = dini_Int(stsreasrasr, "CarSkill");
                 PlayerInfo[playerid][pNewsSkill] = dini_Int(stsreasrasr, "NewsSkill");
                 PlayerInfo[playerid][pDrugsSkill] = dini_Int(stsreasrasr, "DrugsSkill");
                 PlayerInfo[playerid][pCookSkill] = dini_Int(stsreasrasr, "CookSkill");
                 PlayerInfo[playerid][pFishSkill] = dini_Int(stsreasrasr, "FishSkill");
                 PlayerInfo[playerid][pSHealth] = dini_Int(stsreasrasr, "SHealth");
                 PlayerInfo[playerid][pHealth] = dini_Int(stsreasrasr, "Health");
                 PlayerInfo[playerid][pInt] = dini_Int(stsreasrasr, "Int");
                 PlayerInfo[playerid][pLocal] = dini_Int(stsreasrasr, "Local");
                 PlayerInfo[playerid][pTeam] = dini_Int(stsreasrasr, "Team");
                 PlayerInfo[playerid][pModel] = dini_Int(stsreasrasr, "Model");
                 PlayerInfo[playerid][pPnumber] = dini_Int(stsreasrasr, "PhoneNr");
                 PlayerInfo[playerid][pPhousekey] = dini_Int(stsreasrasr, "House");
                 PlayerInfo[playerid][pPbiskey] = dini_Int(stsreasrasr, "Bizz");
                 PlayerInfo[playerid][pPos_x] = dini_Int(stsreasrasr, "Posx");
                 PlayerInfo[playerid][pPos_y] = dini_Int(stsreasrasr, "Posy");
                 PlayerInfo[playerid][pPos_z] = dini_Int(stsreasrasr, "Posz");
                 PlayerInfo[playerid][pCarLic] = dini_Int(stsreasrasr, "CarLic");
                 PlayerInfo[playerid][pFlyLic] = dini_Int(stsreasrasr, "FlyLic");
                 PlayerInfo[playerid][pBoatLic] = dini_Int(stsreasrasr, "BoatLic");
                 PlayerInfo[playerid][pFishLic] = dini_Int(stsreasrasr, "FishLic");
                 PlayerInfo[playerid][pGunLic] = dini_Int(stsreasrasr, "GunLic");
                 PlayerInfo[playerid][pGun1] = dini_Int(stsreasrasr, "Gun1");
                 PlayerInfo[playerid][pGun2] = dini_Int(stsreasrasr, "Gun2");
                 PlayerInfo[playerid][pGun3] = dini_Int(stsreasrasr, "Gun3");
                 PlayerInfo[playerid][pGun4] = dini_Int(stsreasrasr, "Gun4");
                 PlayerInfo[playerid][pAmmo1] = dini_Int(stsreasrasr, "Ammo1");
                 PlayerInfo[playerid][pAmmo2] = dini_Int(stsreasrasr, "Ammo2");
                 PlayerInfo[playerid][pAmmo3] = dini_Int(stsreasrasr, "Ammo3");
                 PlayerInfo[playerid][pAmmo4] = dini_Int(stsreasrasr, "Ammo4");
                 PlayerInfo[playerid][pCarTime] = dini_Int(stsreasrasr, "CarTime");
                 PlayerInfo[playerid][pPayDay] = dini_Int(stsreasrasr, "PayDay");
                 PlayerInfo[playerid][pPayDayHad] = dini_Int(stsreasrasr, "PayDayHad");
                 PlayerInfo[playerid][pCDPlayer] = dini_Int(stsreasrasr, "CDPlayer");
                 PlayerInfo[playerid][pWins] = dini_Int(stsreasrasr, "Wins");
                 PlayerInfo[playerid][pLoses] = dini_Int(stsreasrasr, "Loses");
                 PlayerInfo[playerid][pAlcoholPerk] = dini_Int(stsreasrasr, "AlcoholPerk");
                 PlayerInfo[playerid][pDrugPerk] = dini_Int(stsreasrasr, "DrugPerk");
                 PlayerInfo[playerid][pMiserPerk] = dini_Int(stsreasrasr, "MiserPerk");
                 PlayerInfo[playerid][pPainPerk] = dini_Int(stsreasrasr, "PainPerk");
                 PlayerInfo[playerid][pTraderPerk] = dini_Int(stsreasrasr, "TraderPerk");
                 PlayerInfo[playerid][pTut] = dini_Int(stsreasrasr, "Tutorial");
                 PlayerInfo[playerid][pMissionNr] = dini_Int(stsreasrasr, "Mission");
                 PlayerInfo[playerid][pWarns] = dini_Int(stsreasrasr, "Warnings");
                 PlayerInfo[playerid][pAdjustable] = dini_Int(stsreasrasr, "Adjustable");
                 PlayerInfo[playerid][pFuel] = dini_Int(stsreasrasr, "Fuel");
                 PlayerInfo[playerid][pMarried] = dini_Int(stsreasrasr, "Married");
                 PlayerInfo[playerid][pMarriedTo] = dini_Int(stsreasrasr, "MarriedTo");
                 PlayerInfo[playerid][pDrogas] = dini_Int(stsreasrasr, "Maconha");
                 PlayerInfo[playerid][pDrogas2] = dini_Int(stsreasrasr, "Cocaina");
                 PlayerInfo[playerid][pDrogas3] = dini_Int(stsreasrasr, "Crack");
                 PlayerInfo[playerid][pSafeDrogas] = dini_Int(stsreasrasr, "SafeMaconha");
                 PlayerInfo[playerid][pSafeDrogas2] = dini_Int(stsreasrasr, "SafeCocaina");
                 PlayerInfo[playerid][pSafeDrogas3] = dini_Int(stsreasrasr, "SafeCrack");
                 PlayerInfo[playerid][psMats] = dini_Int(stsreasrasr, "SafeMateriais");
                 gPlayerLogged[playerid] = 1;
                 new string2[128];
                 new tmp2[128];
                 format(string2, sizeof(string2), "SERVER: Bem Vindo %s",name);
                 SendClientMessage(playerid, COLOR_WHITE,string2);
                 printf("%s esta logado no Servidor.",name);
                 format(tmp2, sizeof(tmp2), "~w~Bem Vindo ~n~~y~   %s", name);
                 GameTextForPlayer(playerid, tmp2, 5000, 1);
                 //SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
                 if(Resgistrei[playerid] >= 1)
                 {
                    RegistrationStep[playerid] = 1;
                    PlayerInfo[playerid][pTut] = 1;
                    ShowPlayerDialog(playerid, 3, DIALOG_STYLE_MSGBOX, "Brasil Vila Online RPG", "Escolha Seu Sexo Por Favor.\n Masculino й Homem!\n Feminino й Mulher!", "Masculino", "Femino");
                 }
            }}}
Reply
#10

@The Knight

Meu MSN estб totalmente bugado ! Tento entrar e ele fecha automaticamente ... Nгo entrei no meu PC ainda hoje porque ele estб no conserto.

No momento, estou no PC do meu irmгo.

Quanto ao GM, eu nгo pude fazer mais nada depois daquilo porque meu PC estб sendo consertado, conforme falei anteriormente.

Vi as mensagens que vocк me mandou, mas nгo teve como te responder. Malz ae.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)