25.08.2014, 14:56
Estou com um bug quando seleciono uma textdraw, simplesmente nгo da para clicar, mesmo usando o "selecttextdraw"
E nгo estб dando nenhum erro ou warning no gm.
Codigos nгo estгo completos, essas sгo as partes em que teoricamente estб o problema.
pawn Код:
public OnPlayerConnect(playerid, classid)
{
SelectTextDraw(playerid, 0xFF4040AA);
TextDrawShowForPlayer(playerid, TextEntrar);
return 1;
}
public OnGameModeInit()
{
TextEntrar = TextDrawCreate(198.000000, 314.000000, "Entrar");
TextDrawBackgroundColor(TextEntrar, 255);
TextDrawFont(TextEntrar, 1);
TextDrawLetterSize(TextEntrar, 0.579999, 2.399998);
TextDrawColor(TextEntrar, -1);
TextDrawSetOutline(TextEntrar, 0);
TextDrawSetProportional(TextEntrar, 1);
TextDrawSetShadow(TextEntrar, 1);
TextDrawUseBox(TextEntrar, 1);
TextDrawBoxColor(TextEntrar, 255);
TextDrawTextSize(TextEntrar, 255.000000, 0.000000);
TextDrawSetSelectable(TextEntrar, 1);
}
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == TextEntrar)
{
format(String, sizeof(String), Contas, PegarNome(playerid));
if(DOF2_FileExists(String))
{
format(String, sizeof(String), "{FFFFFF}Seja bem-vindo(a) ao {00FF00}Servidor\n\n{FFFFFF}Informe sua senha para acessar sua conta", PegarNome(playerid));
ShowPlayerDialog(playerid, DialogLogin, DIALOG_STYLE_PASSWORD, "{FFFFFF}Servidor - Login", String, "Entrar", "Sair");
}
else
{
format(String, sizeof(String), "{FFFFFF}Seja bem-vindo(a) ao {00FF00}Servidor\nVocк ainda nгo й registrado, entгo digite uma senha", PegarNome(playerid));
ShowPlayerDialog(playerid, DialogRegistro, DIALOG_STYLE_PASSWORD, "{FFFFFF}Servidor - Registro", String, "Registrar", "Sair");
}
}
return 1;
}
Codigos nгo estгo completos, essas sгo as partes em que teoricamente estб o problema.