Loop saving?
#7

You were reputedly successful, 50 percent of our problem was solved, come on.


Why do I save in an enum?

Код HTML:
//enum updated:

enum pInfo2
{
	pSenha,
    pPersonagem1[80],
    pPersonagem2[80],
    pPersonagem3[80],
    PlayerText:pTextDraws[9]
};
new Account[MAX_PLAYERS][pInfo2];
I got the TextDraw system from another Mysql gamemode, so mine did a good job to convert.
In the enum loads all the TextDraw and saves in the files, I do not know what, but I put it because it was giving error when I enter, it shows "Empty" in the space to create character, and I go in the files and create a character manually, Character appears in textdraw only when I turn off the server and call again,
And I thought of leaving in enum, but I can not save the right way, in this next part;


Код HTML:
new str[40]; 

for(new i; i < 19; i ++) 
{ 
    format(str, sizeof str, "TextDraws%d", i); 

    DOF2_SetInt(arquivo, str, pTextDraws[playerid][i]); 

    DOF2_SaveFile(); 
}  
It solved half of my problem, but half of the problem is missing, the enum, I think.
The 9 textdraw are normally loaded in Onplayerconect.

Quote:

Password = pVazio
Personagem1 = Vazio
Personagem2 = Vazio
Personagem3 = Vazio
TextDraws0 = 0
TextDraws1 = 0
TextDraws2 = 0
TextDraws3 = 0
TextDraws4 = 0
TextDraws5 = 0
TextDraws6 = 0
TextDraws7 = 0
TextDraws8 = 0
TextDraws9 = 0

What part of the password is buggy? This annoying part, I already researched the wiki, nothing brings me information to make it functional.
Reply


Messages In This Thread
Loop saving? - by SukMathcuck - 08.12.2016, 01:28
Re: Loop saving? - by BiosMarcel - 08.12.2016, 01:40
Re: Loop saving? - by SukMathcuck - 08.12.2016, 11:43
Re: Loop saving? - by SukMathcuck - 08.12.2016, 13:08
Re: Loop saving? - by SyS - 08.12.2016, 13:25
Re: Loop saving? - by SukMathcuck - 08.12.2016, 13:48
Re: Loop saving? - by SukMathcuck - 08.12.2016, 16:14
Re: Loop saving? - by SukMathcuck - 08.12.2016, 18:05
Re: Loop saving? - by OneDay - 09.12.2016, 07:48
Re: Loop saving? - by GeneralAref - 09.12.2016, 13:37

Forum Jump:


Users browsing this thread: 1 Guest(s)