Rescue DOF2. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Rescue DOF2. (
/showthread.php?tid=623972)
Rescue DOF2. -
SukMathcuck - 08.12.2016
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;
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(playerid, name, sizeof(name));
format(arquivo, sizeof(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;
}
Re: Rescue DOF2. -
SukMathcuck - 09.12.2016
Help, up!
Re: Rescue DOF2. -
GangstaaSunny - 09.12.2016
Because DOF2 is not a english written include its pretty hard for us to get in to it.
Please use
this forum.
Re: Rescue DOF2. -
SukMathcuck - 09.12.2016
Help? Up!
Re: Rescue DOF2. -
Jaxson - 09.12.2016
Mind explaining what is exactly the problem?
Re: Rescue DOF2. -
SukMathcuck - 09.12.2016
You are saving as pVazio, you must save the password of the player, which he has chosen.
Re: Rescue DOF2. -
Jaxson - 09.12.2016
Are you running the server on a Linux machine? If yes, the path cannot contain a spacing.
Re: Rescue DOF2. -
SukMathcuck - 09.12.2016
I'm not, I believe the error is in the script.