08.12.2016, 16:14
You were reputedly successful, 50 percent of our problem was solved, come on.
Why do I save in an enum?
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;
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.
What part of the password is buggy? This annoying part, I already researched the wiki, nothing brings me information to make it functional.
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];
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();
}
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 |

