Rescue DOF2.
#1

Good afternoon or good night, I'm trying to solve a rescue problem and I'm in doubt, using Dof2 is it necessary to skip the line? for example;
Quote:

/n

Why are you bringing me the following problem?

Incorrect mode:

Код:
Senha = pVazio
Personagem1 = Vazio
Personagem2 = Vazio
Personagem3 = Vazio
Correct mode:
Код:
Senha = 123
Personagem1 = Vazio
Personagem2 = Vazio
Personagem3 = Vazio
Rescue function I found I did not find the error, saves the account when the player disconnects from the server;

PHP код:
stock SalvarConta(playerid)
{
    new
        
str[40],
        
arquivo[100],
        
name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnamesizeof(name));
    
format(arquivosizeof(arquivo), "Contas de Usuбrios/%s.ini"name);
    
DOF2_CreateFile(arquivo);
    
DOF2_SetString(arquivo"Senha"Account[playerid][pSenha]);
    
DOF2_SetString(arquivo"Personagem1"Account[playerid][pPersonagem1]);
    
DOF2_SetString(arquivo"Personagem2"Account[playerid][pPersonagem2]);
    
DOF2_SetString(arquivo"Personagem3"Account[playerid][pPersonagem3]);
    
DOF2_SaveFile();
    return 
1;

Reply
#2

Help, up!
Reply
#3

Because DOF2 is not a english written include its pretty hard for us to get in to it.
Please use this forum.
Reply
#4

Help? Up!
Reply
#5

Mind explaining what is exactly the problem?
Reply
#6

You are saving as pVazio, you must save the password of the player, which he has chosen.
Reply
#7

Are you running the server on a Linux machine? If yes, the path cannot contain a spacing.
Reply
#8

I'm not, I believe the error is in the script.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)