07.12.2016, 17:23
Hello Gusteakas, I'm trying to define with letters, it's the name of the character, I'm having this work because I do not know the functions that I can work with.
@edit
PHP код:
enum pInfo2
{
pSenha,
pPersonagem1,
pPersonagem2,
pPersonagem3
};
new Account[MAX_PLAYERS][pInfo2];
DOF2_CreateFile(arquivo);
DOF2_SetString(arquivo, "Senha", Account[playerid][pSenha]);
DOF2_SetString(arquivo, "Personagem1", "Vazio");
DOF2_SetString(arquivo, "Personagem2", "Vazio");
DOF2_SetString(arquivo, "Personagem3", "Vazio");
DOF2_SaveFile();
PHP код:
new
arquivo[100],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(arquivo, 40, "Contas de Usuбrios/%s.ini", name);
if (strcmp(PlayerInfo[playerid][pPersonagem1], "Vazio", true) == 0) format(str, sizeof(str), "Vazio");
else format(str, sizeof(str), "%s", PlayerInfo[playerid][pPersonagem1]);
PlayerTextDrawSetString(playerid, PlayerInfo[playerid][pTextDraws][2], str);